credentials_obfuscation_pbe (credentials_obfuscation v3.5.0)

Link to this section Summary

Link to this section Types

-type blake2() :: blake2b | blake2s.
-type cipher_iv() ::
    aes_128_cbc | aes_192_cbc | aes_256_cbc | aes_cbc | aes_128_ofb | aes_192_ofb | aes_256_ofb |
    aes_128_cfb128 | aes_192_cfb128 | aes_256_cfb128 | aes_cfb128 | aes_128_cfb8 | aes_192_cfb8 |
    aes_256_cfb8 | aes_cfb8 | aes_128_ctr | aes_192_ctr | aes_256_ctr | aes_ctr | blowfish_cbc |
    blowfish_cfb64 | blowfish_ofb64 | chacha20 | des_ede3_cbc | des_ede3_cfb | des_cbc | des_cfb |
    rc2_cbc.
Link to this type

compatibility_only_hash/0

-type compatibility_only_hash() :: md5 | md4.
Link to this type

hash_algorithm/0

-type hash_algorithm() ::
    crypto:sha1() |
    crypto:sha2() |
    sha3() |
    sha3_xof() |
    blake2() |
    ripemd160 |
    compatibility_only_hash().
-type sha3() :: sha3_224 | sha3_256 | sha3_384 | sha3_512.
-type sha3_xof() :: shake128 | shake256.

Link to this section Functions

Link to this function

decrypt(Cipher, Hash, Iterations, Secret, _)

-spec decrypt(cipher_iv(),
        hash_algorithm(),
        pos_integer(),
        iodata(),
        {encrypted, binary() | [1..255]} | {plaintext, _}) ->
           any().
Link to this function

decrypt_term(Cipher, Hash, Iterations, Secret, Base64Binary)

Link to this function

default_cipher()

Link to this function

default_iterations()

Link to this function

encrypt(Cipher, Hash, Iterations, Secret, ClearText)

-spec encrypt(cipher_iv(), hash_algorithm(), pos_integer(), iodata() | '$pending-secret', iodata()) ->
           {plaintext, binary()} | {encrypted, binary()}.
Link to this function

encrypt_term(Cipher, Hash, Iterations, Secret, Term)

Link to this function

supported_ciphers()

Link to this function

supported_hashes()