Skip to content

bchase/cloak_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cloak_wrapper

Package Version Hex Docs

gleam add cloak_wrapper@1
import cloak_wrapper as cloak

let cloak_cfg =
  cloak.config_aes_gcm(
    key: "rf2xCGeAqlYP2T3PoO8PkMW2jic2FsPwJ8lnuVo0X1Y=",
    tag:  "AES.GCM.V1",
    iv_length: 12,
  )

let plaintext = "Fear is the little-death that brings total obliteration."

let assert Ok(encrypted) = cloak.encrypt_aes_gcm(cloak_cfg, plaintext)
let assert Ok(decrypted) = cloak.decrypt_aes_gcm(cloak_cfg, encrypted)

About

Gleam wrapper for Cloak (Elixir)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published