Simple implementation of the CipherSaber algorithm in javascript.
  • HTML 61.7%
  • JavaScript 38.3%
Find a file
2015-06-23 18:49:25 +02:00
ciphersaber.js License changed to MIT-Beerware 2015-06-23 16:35:07 +02:00
ciphersaber.min.js License changed to MIT-Beerware 2015-06-23 16:35:07 +02:00
example.html License changed to MIT-Beerware 2015-06-23 16:35:07 +02:00
LICENSE License changed to MIT-Beerware 2015-06-23 16:35:07 +02:00
README.md Changed the README 2015-06-23 18:49:25 +02:00

CipherSaber.js

This is a very simple implementation of the CipherSaber-2 algorithm by Arnold Reinhold ([email protected]). More info: http://ciphersaber.gurus.org/

Usage

var encryptedText = CipherSaber.encrypt(someText, aPassword, aNumber);

var decryptedText = CipherSaber.decrypt(someText, aPassword, aNumber);

Output

75 34 8e 15 d0 3a 39 31 ba a4 f7 19 01 80 a8

Hello

See example.html for more informations.

CipherSaber.encrypt(someText, aPassword, aNumber)

Returns an encrypted text.

someText must be a string aPassword must be a string, up to 246 characters in length aNumber must be number between 1 and 100, the higher the better (default: 20)

CipherSaber.decrypt(someText, aPassword, aNumber)

Returns a decrypted text.

someText must be a string in hex aPassword must be a string, up to 246 characters in length aNumber must be number between 1 and 100, the higher the better (default: 20)

Warning

Please do not use this for anything important. In fact, don't use this at all. Go write your own.

License

Licensed under the terms of the MIT-Beerware license. See the LICENSE file for license rights and limitations.