class Lucky::MessageVerifier

Defined in:

lucky/support/message_verifier.cr

Constructors

Instance Method Summary

Instance methods inherited from class Object

blank? : Bool blank?, present? : Bool present?

Constructor Detail

def self.new(secret : String, digest : Symbol = :sha1) #

[View source]

Instance Method Detail

def generate(value : String | Bytes) : String #

[View source]
def valid_message?(data : String, digest : String) : Bool #

[View source]
def verified(signed_message : String) : String | Nil #

[View source]
def verify(signed_message : String) : String #

[View source]
def verify_raw(signed_message : String) : Bytes #

[View source]