Core-decrypt
return (encoding === 'utf8' ? decrypted.toString('utf8') : decrypted.toString('base64')) as T;
const decipher = crypto.createDecipheriv('aes-256-gcm', key, iv); decipher.setAuthTag(authTag); core-decrypt
coreDecrypt( ciphertext, iv, authTag , password) If you want a secure, production-ready core-decrypt feature using AES-256-GCM: return (encoding === 'utf8'