Skip to content

Cryptography

Arthur Guiot edited this page Jun 23, 2018 · 2 revisions

TheoremJS includes very basic but powerful cryptographic functions. Most of these functions were originally created and developed at CrypTools, an organization that I created with some friends.

t.sha256("TheoremJS") // => "506a3473100061c0f1237f17949e1b65b47eb8ed2ce22d1685dc3354acb700a9"
t.md5("TheoremJS") // => "80139a691767b8ba6c43873c40fc9fe1"

Binary Manipulation

t.str2bin("TheoremJS") // => "01010100 01101000 01100101 01101111 01110010 01100101 01101101 01001010 01010011 "

t.bin2str("01010100 01101000 01100101 01101111 01110010 01100101 01101101 01001010 01010011 ") // => "TheoremJS"
Clone this wiki locally