Skip to content

Instantly share code, notes, and snippets.

@icostan
Created October 11, 2018 18:04
Show Gist options
  • Save icostan/3c1b26f5e0aef14a25f6aaf1956d1f4d to your computer and use it in GitHub Desktop.
Save icostan/3c1b26f5e0aef14a25f6aaf1956d1f4d to your computer and use it in GitHub Desktop.
ruby> require 'digest'
ruby> sha256 = Digest::SHA256.hexdigest([P].pack('H*'))
=> "0b7c28c9b7290c98d7438e70b3d3f7c848fbd7d1dc194ff83f4f7cc9b1378e98"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment