class Lucky::MessageVerifier

Defined in:

lucky/support/message_verifier.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

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

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

DEPRECATED Legacy token verification will be removed in the next release.


[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]