Need to encrypt/decrypt something real quick? This is a simple, dependency-free way to get the job done.
const { encrypt, decrypt } = makeEncryptor('my-secret-key')
encrypt('hello, world!') // -> 1d1019191a5955021a07191154
decrypt('1d1019191a5955021a07191154') // -> hello, world!
The majority of the code was taken from this SO answer.