Skip to content

Instantly share code, notes, and snippets.

View btxtiger's full-sized avatar
:octocat:

btxtiger

:octocat:
View GitHub Profile
@btxtiger
btxtiger / AesUtil.ts
Last active February 22, 2025 02:18 — forked from AndiDittrich/AesUtil.js
Node.js - AES Encryption/Decryption with AES-256-GCM using random Initialization Vector + Salt
/**
* Cryptography Functions
*
* Forked from AndiDittrich/AesUtil.js
* https://gist.github.com/AndiDittrich/4629e7db04819244e843
*/
import crypto, { CipherGCM, CipherGCMTypes, DecipherGCM } from 'crypto';
import { Password } from './types';