Module: WeWhisper::Signature
- Defined in:
- lib/we_whisper/signature.rb
Class Method Summary collapse
Class Method Details
.sign(token, timestamp, nonce, encrypted) ⇒ Object
5 6 7 8 |
# File 'lib/we_whisper/signature.rb', line 5 def self.sign(token, , nonce, encrypted) Digest::SHA1.hexdigest \ [token, , nonce, encrypted].compact.collect(&:to_s).sort.join end |