Skip to content

Instantly share code, notes, and snippets.

@ivyl
Last active December 28, 2015 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivyl/7428982 to your computer and use it in GitHub Desktop.
Save ivyl/7428982 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'rubygems'
require 'base32'
key = [ARGV.first].pack("H*")
puts Base32.encode(key)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment