module Wechat::Validation
Constants
- VERSION
Public Class Methods
sign(nonce, timestamp, token)
click to toggle source
# File lib/wechat/validation.rb, line 10 def self.sign(nonce, timestamp, token) actual_signature = Digest::SHA1.hexdigest [ nonce, timestamp, token ].sort.join('') end