class Sodium::Password::Params

Overview

Contains the params necessary for #derive_key.

Defined in:

sodium/password/params.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(mode, ops, mem, salt = nil, key_size = nil, tcost = nil, verify = nil) #

[View source]

Instance Method Detail

def key_size : Int32? #

[View source]
def key_size=(key_size : Int32?) #

[View source]
def mem : UInt64 #

[View source]
def mem=(mem : UInt64) #

[View source]
def mode : Mode? #

[View source]
def mode=(mode : Mode?) #

[View source]
def ops : UInt64 #

[View source]
def ops=(ops : UInt64) #

[View source]
def salt : Bytes? #

[View source]
def salt=(salt : Bytes?) #

[View source]
def tcost : Float64? #

Information only. Not used to derive a key.


[View source]
def tcost=(tcost : Float64?) #

Information only. Not used to derive a key.


[View source]
def to_h #

[View source]
def verify : Bytes? #

Application specific param to verify a password.


[View source]
def verify=(verify : Bytes?) #

Application specific param to verify a password.


[View source]