new line appending on my encrypted string

I may be late in answering this, but came across with same problem. Actually problem lies here
Base64.encodeBase64String(hashPassword)

Change that line to look like this it should work:
Base64.encodeBase64String(hashPassword,Base64.NO_WRAP)

By default the Android Base64 util adds a newline character to the end of the encoded string.
The Base64.NO_WRAP flag tells the util to create the encoded string without the newline character.

Check here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)