XOR encryption implementations for several languages.
Go to file
2016-03-14 22:20:09 +05:30
C Added C implementation 2013-10-06 15:26:38 -04:00
C# Add key array comment 2013-10-06 20:16:14 -04:00
C++ Moved main.cpp to C++ folder 2013-10-06 14:35:50 -04:00
Dart Added Dart implementation 2013-10-06 19:50:34 -04:00
F# F# impl 2015-06-23 13:40:46 +02:00
Groovy Fixing indentation 2013-10-06 16:44:44 -04:00
Java (Android compatible) Added Java/Android implementation 2013-10-06 14:48:35 -04:00
JavaScript Added JavaScript implementationg 2013-10-06 16:13:22 -04:00
Objective-C algorithm is now able to process unichar (two byte) characters such as Chinese or Cyrillic 2015-09-03 03:54:30 -04:00
Python Fixed python to not use a hard coded K char, and to actually use the key array 2013-10-06 16:03:27 -04:00
VB.NET Comments Improvements 2016-03-14 22:20:09 +05:30
.gitignore Added Java/Android implementation 2013-10-06 14:48:35 -04:00
LICENSE Update LICENSE 2015-08-09 08:33:50 -04:00
README.md Added VB.NET implementation 2016-03-14 20:55:47 +05:30

XOR Encryption

Simple implementation of XOR Encryption/Decrypting in various languages, including:

This implementation goes beyond the basic single-key model to use multiple keys in a particular sequence, making it that much more difficult to brute-force.

In these examples, I'm encrypting the same string with the same keys in order to keep consistency with the output, and to demonstrate that an encrypted string from a C program can be decrypted in a Java application, or any combination, so long as the keys remain the same.

For an in-depth explanation of the code, check out KyleWBanks.com.