got rid of Base64, fixed errors with key encoding