Module: ClaimToken::Signer

Defined in:
lib/claim_token/signer.rb

Class Method Summary collapse

Class Method Details

.digest_secretObject



9
10
11
# File 'lib/claim_token/signer.rb', line 9

def self.digest_secret
  ClaimToken.configuration.digest_secret
end

.sign(encrypted_data) ⇒ Object



5
6
7
# File 'lib/claim_token/signer.rb', line 5

def self.sign encrypted_data
  OpenSSL::HMAC.hexdigest('sha1', digest_secret, encrypted_data)
end