superbacked / blockcrypt

Encrypt one or more secrets with plausible deniability by design.
MIT License
109 stars 5 forks source link

kdf value is not set in README.md example #1

Closed cryptofusion closed 1 year ago

cryptofusion commented 1 year ago

I'm still exploring the code and trying to understand it. I think kdf is not set in the readme example. When compiling the example code locally, getting

Cannot find name 'kdf'.

coming from line 19: const block = await encrypt(secrets, kdf)

sunknudsen commented 1 year ago

Hey, thanks so much for looking into the code and offering feedback.

Blockcrypt does not provide a key derivation function “by design” so developers can provide their own (for example, Superbacked uses Argon2).

For experimentation purposes (or unit tests), an insecure key derivation function is available here.

Thanks again for helping out!