Difference between revisions of "Chaocipher"

From Fōrmulæ wiki
Jump to: navigation, search
(Creation of page)
 
(Creation of page)
 
Line 9: Line 9:
  
 
The algorithm is described in [http://www.mountainvistasoft.com/chaocipher/ActualChaocipher/Chaocipher-Revealed-Algorithm.pdf this paper] by M.Rubin in 2010 and there is a C# implementation [https://www.c-sharpcorner.com/UploadFile/b942f9/implementing-the-chaocipher-in-C-Sharp/ here].
 
The algorithm is described in [http://www.mountainvistasoft.com/chaocipher/ActualChaocipher/Chaocipher-Revealed-Algorithm.pdf this paper] by M.Rubin in 2010 and there is a C# implementation [https://www.c-sharpcorner.com/UploadFile/b942f9/implementing-the-chaocipher-in-C-Sharp/ here].
 
  
 
'''Task'''
 
'''Task'''
Line 17: Line 16:
  
 
=== Program ===
 
=== Program ===
 +
 +
The following program can be used to either encryt or decrypt text.
  
 
[[File:ChaoCipherCode.png|border]]
 
[[File:ChaoCipherCode.png|border]]
  
 
=== Use cases ===
 
=== Use cases ===
 +
 +
To encrypt text (encrypt flag set to true):
  
 
[[File:ChaoCipherCase01.png|border]]
 
[[File:ChaoCipherCase01.png|border]]
 +
 +
To decrypt text (encrypt flag set to false):
  
 
[[File:ChaoCipherCase02.png|border]]
 
[[File:ChaoCipherCase02.png|border]]
  
 
[[Category:Rosetta Code's tasks]]
 
[[Category:Rosetta Code's tasks]]

Latest revision as of 17:15, 6 October 2019

This page is a solution to the task Chaocipher in the Rosetta Code, written in Fōrmulæ.

Description (from Rosetta Code)

Description

The Chaocipher was invented by J.F.Byrne in 1918 and, although simple by modern cryptographic standards, does not appear to have been broken until the algorithm was finally disclosed by his family in 2010.

The algorithm is described in this paper by M.Rubin in 2010 and there is a C# implementation here.

Task

The task is to code the algorithm in your language and to test that it works with the plaintext 'WELLDONEISBETTERTHANWELLSAID' used in the paper itself.

Program

The following program can be used to either encryt or decrypt text.

ChaoCipherCode.png

Use cases

To encrypt text (encrypt flag set to true):

ChaoCipherCase01.png

To decrypt text (encrypt flag set to false):

ChaoCipherCase02.png