Fix jsonifying key

Add concept of a salt (needed for PBKDF2)