Wraith.Vault (Wraith v0.1.0)

View Source

Secrets at rest (the Kiro API key, Stripe keys): encrypted with a dedicated key (config :wraith, Wraith.Vault, key: — WRAITH_VAULT_KEY in prod), so the store never holds them in the clear and rotating the session secret doesn't destroy them.

Summary

Functions

decrypt(cipher)

@spec decrypt(String.t()) :: {:ok, String.t()} | :error

encrypt(plain)

@spec encrypt(String.t()) :: String.t()