class Argon2

Defined in:

argon2.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(time_cost : Int32, mem_cost : UInt32, parallelism : UInt32) #

[View source]

Class Method Detail

def self.verify(encoded : String, password : String, hash_type : LibArgon2::HashType) : Bool #

[View source]
def self.verify_d(encoded : String, password : String) : Bool #

[View source]
def self.verify_i(encoded : String, password : String) : Bool #

[View source]
def self.verify_m(encoded : String, password : String) : Bool #

[View source]

Instance Method Detail

def hash_encoded(password : String, salt : String, hash_length : UInt32, hash_type : LibArgon2::HashType) : String #

[View source]
def hash_encoded_d(password : String, salt : String, hash_length : UInt32) : String #

[View source]
def hash_encoded_i(password : String, salt : String, hash_length : UInt32) : String #

[View source]
def hash_encoded_m(password : String, salt : String, hash_length : UInt32) : String #

[View source]