From 46145350eb0e3bae8ca935d0f0f23eb1d40e6f58 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 20 May 2022 12:49:53 +0200 Subject: Implement some crypto --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index e9d506c..8880183 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,6 @@ Operations: - **Initialize**(`password`): - if `"salt"` or `"public"` already exist, BAIL - generate salt `S` (32 random bytes) - - write `S` at `"salt"` - generate `public`, `private` (curve25519 keypair) - generate `master` (secretbox secret key) - calculate `digest = argon2_S(password)` @@ -77,6 +76,7 @@ Operations: - calculate `key = argon2_Skey(password)` - serialize `box_contents = (private, master)` - seal box `blob = seal_key(box_contents)` + - write `S` at `"salt"` - write `concat(Skey, blob)` at `"password:{hex(digest[..16])}"` - write `public` at `"public"` -- cgit v1.2.3