Last active
December 31, 2016 18:38
-
-
Save kv109/68fdc29580c4ea2a0bd2a47d02e91d98 to your computer and use it in GitHub Desktop.
aes8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"pa".hex #=> 0 | |
"ss".hex #=> 0 | |
"wo".hex #=> 0 | |
"rd".hex #=> 0 | |
"".hex #=> 0 | |
"password".unpack("a2"*32).map { |x| x.hex } | |
#=> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | |
"totally wrong password".unpack("a2"*32).map { |x| x.hex } | |
#=> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment