Go to file
vinchuco c52f170606
Update README.md
saw no link to the talk/slides
2018-01-08 05:21:23 -06:00
README.md Update README.md 2018-01-08 05:21:23 -06:00
shamwow_test.rb add sha1 function 2017-09-03 21:59:49 -04:00
shamwow.rb add slides 2017-12-11 13:26:41 -05:00
slides-with-notes.pdf add slides 2017-12-11 13:26:41 -05:00
slides.key add slides 2017-12-11 13:26:41 -05:00
slides.pdf add slides 2017-12-11 13:26:41 -05:00

SHAmwow

Sometimes you just want to understand how your hashing algorithms work, so you implement them yourself.

It should go without saying that this was just for fun, and you should never, ever, ever roll your own cryptography primatives for any purpose other than education!

sha1

The sha1 function in shamwow.rb implements the SHA1 hashing function in Ruby, outputting the 160-bit hash as a hexadecimal string.

sources

sha2

The sha2 function in shamwow.rb implements the SHA-256 hashing function in Ruby, outputting the 256-bit hash as a hexadecimal string.

Sources

Tests

shamwow_test.rb contains a few sanity tests for the bit-rotation functions and for the hashes themselves, testing against the output of the Digest gem in the standard library.

Obligatory

ShamWOW