Skip to content

Instantly share code, notes, and snippets.

@schaary
Created July 15, 2014 12:13
Show Gist options
  • Save schaary/fe162fa794eafe63d41e to your computer and use it in GitHub Desktop.
Save schaary/fe162fa794eafe63d41e to your computer and use it in GitHub Desktop.
sha1 hin und wieder zurück
# Quelle: http://anthonylewis.com/2011/02/09/to-hex-and-back-with-ruby/
Base64.decode64('ZNgCF5auf9KN/PzwpUaxKyvLAtU=').each_byte.map{ |b| b.to_s(16) }.join
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment