Welcome Guest, Not a member yet? Register   Sign In
An error occurred translating the query string to UTF-16: No mapping for the Unicode
#2

The whole code has more problems except the encoding.

1. You use encryption for passwords. Use hashing.
2. Your encryption algorithm is non-standard, super-weak, and it does not have separate secret data (a key) to be applied. By publishing its code here the encryption is already compromised.

3. To the concrete problem: You may encode the problematic strings using base64 before storing within the password field, on reading apply base64 decoding. This is not a solution, better try to refactor the whole password related code.
Reply


Messages In This Thread
RE: An error occurred translating the query string to UTF-16: No mapping for the Unicode - by ivantcholakov - 02-08-2015, 08:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB