UNPKG

alks

Version:
7 lines (5 loc) 174 B
const ENC_LEN = 32; export function getSizedEncryptionKey(key: string) { // must be 256 bytes (32 characters) return key.padStart(ENC_LEN, '0').substring(0, ENC_LEN); }