zero-sight-protocol
Version:
A secure, zero-knowledge, PIN-based encryption protocol for custodial Web3 wallets.
18 lines (15 loc) • 332 B
JavaScript
import crypto from 'crypto';
/**
* Generates a random 16-byte IV.
* @returns {Buffer}
*/
export function generateIV() {
return crypto.randomBytes(16);
}
/**
* Generates a random salt (32 bytes) for key derivation.
* @returns {Buffer}
*/
export function generateSalt() {
return crypto.randomBytes(32);
}