Skip to content

Instantly share code, notes, and snippets.

@Mitra-88
Mitra-88 / compile-aseprite-gnu-linux.md
Last active March 15, 2025 12:44 — forked from veganaize/Aseprite-build-linux.md
Compile Aseprite from source code for GNU/Linux
@chrisveness
chrisveness / crypto-aes-gcm.js
Last active May 11, 2025 11:17
Uses the SubtleCrypto interface of the Web Cryptography API to encrypt and decrypt text using AES-GCM (AES Galois counter mode).
/**
* Encrypts plaintext using AES-GCM with supplied password, for decryption with aesGcmDecrypt().
* (c) Chris Veness MIT Licence
*
* @param {String} plaintext - Plaintext to be encrypted.
* @param {String} password - Password to use to encrypt plaintext.
* @returns {String} Encrypted ciphertext.
*
* @example
* const ciphertext = await aesGcmEncrypt('my secret text', 'pw');