Skip to content

Implementation of Solitaire encryption algorithm

Notifications You must be signed in to change notification settings

jpr98/solitaire

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solitaire Encryption Algorithm

This repo contains an implementation (in Go) of the Solitaire encryption algorithm developed by Bruce Schneier.

The algorithm works by simulating a deck of playing cards (2 suits in this case) and a set of rules to get keystream values.

To learn more about it read The Somewhat Simplified Solitaire Encryption Algorithm


Instructions

First of all if you want to compile this program you need to have Go installed and properly configured.

I'm uploading an executable file for MacOS for demo purposes.

To encode a message:

./solitaire -msg="Dr. McCann is insane" -e

To decode a message:

./solitaire -msg="BYXFTZZLNQBZBLBNWOLE" -d

It is imperative that you provide a file named deck.txt formatted as the example given, with numbers 1-28 in an array. To be able to decode a message you need to provide the same order for this array with which the message was encoded.

About

Implementation of Solitaire encryption algorithm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages