Ruby 加密(md5,sha1,base64)

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#md5加密
require 'md5'  
puts MD5.hexdigest('admin') 

#sha1加密
require 'digest/sha1'  
puts Digest::SHA1.hexdigest('admin')

#base64
require 'base64'  
code = Base64.encode64('admin')  
source = Base64.decode64(code)