Skip to content

Instantly share code, notes, and snippets.

View jannecederberg's full-sized avatar

Janne Cederberg jannecederberg

View GitHub Profile
@sukima
sukima / XORCipher.js
Last active July 18, 2024 14:52
A Super simple encryption cipher using XOR and Base64 in JavaScript
// XORCipher - Super simple encryption using XOR and Base64
//
// Depends on [Underscore](http://underscorejs.org/).
//
// As a warning, this is **not** a secure encryption algorythm. It uses a very
// simplistic keystore and will be easy to crack.
//
// The Base64 algorythm is a modification of the one used in phpjs.org
// * http://phpjs.org/functions/base64_encode/
// * http://phpjs.org/functions/base64_decode/