- 10 Interview Questions Every JavaScript Developer Should Know
- The Two Pillars of JavaScript
- Why I use Tape Instead of Mocha & So Should You
- A Simple Challenge to Classical Inheritance Fans
- Assessing Employee Performance
- How to Use Classes and Sleep at Night
- A curated list of resources on why ES6 (aka ES2015) classes are NOT awesome
- [Composition in Javascript](http://rjzaworski.com/2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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'); |