Skip to content

andrewmcwattersandco/encrypted-modular-crypt-format

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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

About

Encrypted Modular Crypt Format (EMCF)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published