8000 GitHub - tomrow/tscipherlib: basic weak cipher
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tomrow/tscipherlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
< 7B2F /div>
 
 
 
 
 
 

Repository files navigation

tscipherlib

basic weak cipher

Use "from tscipherlib import *" to import this library

cencode(text,key) This expects a string (text) and an integer (key), and will output an integer array with the encrypted characters in it.

cencodeh(text,key) This expects a string (text) and an integer (key), and will output a hexadecimal string with the encrypted characters in it.

cscramble(iterate,key) This is used internally by the cencode and cdecode functions

cdecode(array,key) this expects an integer array (array) and an integer (key), and will output a text string with the decrypted text.

cdecodeh(text,key) This expects a string (hex) and an integer (key), and will output a text string with the decrypted text in non-hex format.

you can run it standalone to test its functionality, and the effectiveness of the cipher. it will print the string "hello", followed by a plot of # symbols to test the randomness of the cipher.

About

basic weak cipher

Resources

Stars

Watchers

Forks

Packages

No packages published
0