Sha256: 79075d50cfefc4b708fb4dbe7c441896bdab9582ea6f0df90918d1ca9c617d7d
Contents?: true
Size: 261 Bytes
Versions: 19
Compression:
Stored size: 261 Bytes
Contents
require 'digest/md5' module Alipay module Sign class MD5 def self.sign(key, string) Digest::MD5.hexdigest("#{string}#{key}") end def self.verify?(key, string, sign) sign == sign(key, string) end end end end
Version data entries
19 entries across 19 versions & 2 rubygems