Created
May 23, 2016 07:39
-
-
Save beepony/ea0d2e7dc5a58392fd965243fd0069ed 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
#! /usr/bin/ruby -w | |
# author:beepony | |
# description: md5 digest string | |
require 'digest' | |
def md5(string) | |
Digest::MD5.hexdigest(string.encode('utf-8')) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment