UNPKG

better-cipher

Version:

A secure encryption library with browser and Node.js support using AES-GCM

4 lines (3 loc) 91 B
export function isValidHexKey(key: string): boolean { return /^[0-9a-f]+$/i.test(key); }