Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am getting the below error when trying to encrypting and decrypting my Password.

Error:

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or a non-white space character among the padding characters.
Posted
Comments
uspatel 13-Feb-12 7:09am    
Share code......
Rajesh Anuhya 13-Feb-12 8:16am    
Not Clear.
--RA

1 solution

The answer to that is short: Somewhere in your program an input is expected in Base-64 encoding and you are feeding it something that is not Base-64 encoded. This is exactly what the error message is trying to tell you. Could also be something in your processing sequence such as you are trying to use the same sequence in encoding as in decoding where it would be nescessary to reverse the steps when decoding. Seeing your code might help us be more specific though, so feel free to use the "Improve question" link below your answer to add the nescessary details.

Regards,

Manfred
 
Share this answer
 
Comments
Shanthoshshanmugam 13-Feb-12 23:40pm    
Thanks for the reply I got it!!!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900