Class: DigestGeneration

Inherits:
Object
  • Object
show all
Defined in:
lib/AuthenticationSDK/authentication/payloadDigest/digest.rb

Overview

hash of payload that is BASE64 encoded

Instance Method Summary collapse

Instance Method Details

#generateDigest(payload) ⇒ Object



6
7
8
9
# File 'lib/AuthenticationSDK/authentication/payloadDigest/digest.rb', line 6

def generateDigest(payload)
  digest = Digest::SHA256.base64digest(payload)
  return digest
end