Libraries for secure passphrase generation and conversion to/from cryptographic keys