Skip to content

Instantly share code, notes, and snippets.

View shangab's full-sized avatar

Abubakr Hamid shangab

View GitHub Profile
@shangab
shangab / XORCipher.ts
Created August 22, 2021 05:26 — forked from dfa1234/XORCipher.ts
A Super simple encryption cipher using XOR and Base64 in JavaScript - Just made the typescript version for angular 4, and I removed the underscore dependency
// XORCipher - Super simple encryption using XOR and Base64
// Usage
// --------
//
// XORCipher.encode("test", "foobar"); // => "EgocFhUX"
// XORCipher.decode("test", "EgocFhUX"); // => "foobar"
//
// Copyright © 2013 Devin Weaver <[email protected]>
//
// This program is free software. It comes without any warranty, to