Last active
March 4, 2016 21:59
-
-
Save bokuo-okubo/79fd06f5f1d0fc92be4b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def wepkey2ascii(key) | |
key.to_s.scan(/../).map { |s| s.hex.chr }.join | |
end | |
#=> "01fc91ab8b648" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment