Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.16 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.16 KB

encrypted-modular-crypt-format

Encrypted Modular Crypt Format (EMCF)

Examples

Given the following inputs:

  • Algorithm: aes-256-gcm
  • Key Identifier: K
  • IV: IV
  • Ciphertext: C
  • Authentication Tag: T

A compliant EMCF string will be formatted to output:

$aes-256-gcm$K$IV||C||T

Password-based symmetric encryption

Given the following inputs:

$aes-256-gcm$7$S$IV||C||T

Envelope encryption

Given the following inputs:

  • Wrapped DEK: D
$aes-256-gcm$D$IV||C||T

Prior art

See also

License

Creative Commons Zero v1.0 Universal

Footnotes

  1. https://en.wikipedia.org/wiki/Crypt_(C)#Key_derivation_functions_supported_by_crypt