Last active
May 2, 2017 10:52
-
-
Save sebasbad/fc93cba34e40dba0179f2e27c30e9af1 to your computer and use it in GitHub Desktop.
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
require 'digest' | |
File.foreach("emails.txt").with_index do |line| | |
strippedLine = "#{line}".strip | |
lineSha256 = Digest::SHA256.hexdigest strippedLine | |
puts "#{strippedLine},#{lineSha256}" | |
end | |
#usage: ruby rubySha256.rb > emailsSha256.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment