@libp2p/keychain
Version:
Key management and cryptographically protected messages
12 lines (11 loc) • 316 B
text/typescript
/**
* Default options for key derivation
*
* @see https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pbkdf2
*/
export const DEK_INIT = {
keyLength: 512 / 8,
iterationCount: 10000,
salt: 'you should override this value with a crypto secure random number',
hash: 'sha2-512'
}