using PBKDF2 to convert wallet passwords into encryption keys