class Lucky::MessageVerifier

Defined in:

lucky/support/message_verifier.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

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

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

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

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

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

[View source]