Sha256: 1e66abd56f6667934ef25998772b15b1bf8ba888eddd120d714f099810bb30be
Contents?: true
Size: 219 Bytes
Versions: 1
Compression:
Stored size: 219 Bytes
Contents
require 'wechat/validation/version' module Wechat module Validation def sign(nonce, timestamp, token) actual_signature = Digest::SHA1.hexdigest [ nonce, timestamp, token ].sort.join('') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wechat-validation-0.1 | lib/wechat/validation.rb |