Core-decrypt
const key = crypto.pbkdf2Sync(password, Buffer.from(salt, 'hex'), 100000, 32, 'sha256');
const decrypted = Buffer.concat([ decipher.update(ciphertext), decipher.final(), ]); core-decrypt
coreDecrypt(encryptedText: string, secretKey: string): string or something like: const key = crypto
const decipher = crypto.createDecipheriv('aes-256-gcm', key, iv); decipher.setAuthTag(authTag); const key = crypto.pbkdf2Sync(password
// core-decrypt.ts import * as crypto from 'crypto'; export interface DecryptOptions encryptedData: string; // base64 encoded ciphertext + iv + authTag password: string; encoding?: 'utf8'