Security & Identity ยท zero-dependency ยท MIT

larzvault

Encrypted secrets store.

Stores secrets under a PBKDF2-HMAC-SHA256-derived master key with a real encrypt-then-MAC AEAD (HMAC-SHA256-counter-mode keystream, authenticated over the ciphertext + AAD) - move the ciphertext to a different AAD context and it fails to authenticate. Built on larzcrypt.

larzscript pkg install vault
View on GitHub →Learn the stack

What you get

Try it

import "vault" as vault
let v = vault.encrypt("secret data", "my-password", "app-v1")
print(vault.decrypt(v, "my-password", "app-v1"))
try {
  vault.decrypt(v, "wrong-password", "app-v1")
} catch e {
  print("rejected: " + e["message"])
}
Output
secret data
rejected: wrong password, tampered ciphertext, or AAD mismatch (line 105)

Why it's in the Larz Stack

larzvault is a real Larzscript package (larzscript pkg install vault) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.