pbcs v0.1.0 PBCS View Source

PKCS #5: Password-Based Cryptography Specification Version 2.0.

See: https://tools.ietf.org/html/rfc2898

Link to this section Summary

Link to this section Types

Link to this type cipher_text() View Source
cipher_text() :: binary()
Link to this type plain_text() View Source
plain_text() :: binary()
Link to this type protected() View Source
protected() :: %{
  alg: String.t(),
  enc: String.t(),
  p2c: pos_integer(),
  p2s: binary()
}

Link to this section Functions

Link to this function decrypt(arg, opts) View Source
decrypt({tag(), cipher_text()}, opts()) :: plain_text()
Link to this function encrypt(arg, protected, opts) View Source
encrypt({tag(), plain_text()}, protected(), opts()) :: cipher_text()