I am storing passwords for my users as an encrypted string. If I open a user to edit in the admin console. The entire encrypted sting is not copied over and if I save the user, their password no longer works. I'm guessing the encryption is creating characters that interfere with the data viewer and say the field is ending before it really is. Is this a problem with app engine or should I be storing my passwords as a different type? If any other information is needed I will be happy to provide more details.
Below is the hashing method I use, this is directly saved into the data store.
public String getHash(String password, byte[] salt) throws NoSuchAlgorithmException, UnsupportedEncodingException {
MessageDigest md = MessageDigest.getInstance("SHA-256");
md.reset();
md.update(salt);
return new String(md.digest(password.getBytes("UTF-8")));
}