Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 367 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 367 Bytes

aes-256-gcm-js

AES 256 GCM encryption algorithm in JavaScript

Use

import { encrypt, decrypt } from "@swiftyapp/aes-256-gcm";

const encrypted = encrypt("some sensitive data", "password");
console.log(encrypted); // 79e103b37586b83002e92cc9...

const decrypted = decrypt(encrypted, "password");
console.log(decrypted); // some sensitive data