Core-decrypt May 2026

const decrypted = Buffer.concat([ decipher.update(ciphertext), decipher.final(), ]);

const decipher = crypto.createDecipheriv('aes-256-gcm', key, iv); decipher.setAuthTag(authTag); core-decrypt

// core-decrypt.ts import * as crypto from 'crypto'; export interface DecryptOptions 'base64'; const decrypted = Buffer

const plain = coreDecrypt( encryptedData: '...', // from core-encrypt password: 'my-secret', ); If you give me more details (use case, stack, encryption format), I’ll tailor the feature exactly to your needs. const decipher = crypto.createDecipheriv('aes-256-gcm'

return (encoding === 'utf8' ? decrypted.toString('utf8') : decrypted.toString('base64')) as T;