cloak_wrapper
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)