Share your code.
Deterministic seeds from passphrases suitable for WetWare RAM (Read: the human brain)
var hash =var crypt =var generatePassphrase =var appId = Buffervar salt = Buffervar passphrase = Buffervar keyPair = crypt// Go crazy with your new key pair
mindvault(passphrase, salt, [appId])
passphrasemust be a Buffer of arbitrary length, and is recommended to have entropy beyond 100 bits.
saltmust be Buffer of arbitrary length. It ss used to partition the key space, to prevent dictionary attacks and key collisions, and should therefore be unique. One way to achieve this is to have users enter their email address as email addresses are unique by definition.
appIdis optional, but must be a Buffer of length
mindvault.APP_ID_BYTES. Presently that's 32 bytes, and it is used as a key to the salt hashing algorithm Blake2b. This will further partition the salt hash space, making key collisions between different applications, with the same
npm install mindvault