#md5加密
require 'md5'
puts MD5.hexdigest('admin')
#sha1加密
require 'digest/sha1'
puts Digest::SHA1.hexdigest('admin')
#baserequire 'base64'
code = Base64.encode64('admin')
source = Base64.decode64(code)
require 'md5'
puts MD5.hexdigest('admin')
#sha1加密
require 'digest/sha1'
puts Digest::SHA1.hexdigest('admin')
#baserequire 'base64'
code = Base64.encode64('admin')
source = Base64.decode64(code)