Module cipher

Function Index

decrypt/2
decrypt_base64/2
encrypt/2
encrypt_base64/2
gpg_key_decode/1Decode PGP public key.
make_key/1
make_key_base64/1

Function Details

decrypt/2

decrypt(Encrypted, Key) -> any()

decrypt_base64/2

decrypt_base64(EncryptedBase64, KeyBase64) -> any()

encrypt/2

encrypt(Text, KeyPlainText) -> any()

encrypt_base64/2

encrypt_base64(Text, KeyBase64) -> any()

gpg_key_decode/1

gpg_key_decode(File :: string() | binary()) ->
                  [public_key:pem_entry()]

Decode PGP public key

make_key/1

make_key(PlainKey) -> any()

make_key_base64/1

make_key_base64(PlainKey) -> any()