module

Argon2::Engine

Class methods

argon2d_verify(password : String, encoded_string : String)

Verifies a password using Argon2d against an encoded string @param password string @param encoded string (output from has_argon2d_encode) Returns ARGON2_OK if successful

Source
argon2i_verify(password : String, encoded_string : String)

Verifies a password using Argon2i against an encoded string @param password string @param encoded string (output from has_argon2i_encode) Returns ARGON2_OK if successful

Source
argon2id_verify(password : String, encoded_string : String)

Verifies a password using Argon2id against an encoded string @param password string @param encoded string (output from has_argon2id_encode) Returns ARGON2_OK if successful

Source
encoded_hash(engine_type : EngineType, password : String, salt : String, t_cost : Int32, m_cost : Int32)
Source
encoded_verify(engine_type : EngineType, password : String, encoded_string : String)
Source
generate_salt(salt_size = DEFAULT_SALT_LEN)

Generate a random hex salt string - defaults to default length recommended by the argon2 spec

Source
hash_argon2d_encode(password : String, salt : String, t_cost : Int32, m_cost : Int32)

Hashes a password with Argon2d, producing an encoded hash @param password string @param salt string @param t_cost Number of iterations @param m_cost Sets memory usage to m_cost kibibytes

Source
hash_argon2d_raw(password : String, salt : String, t_cost : Int32, m_cost : Int32)

Hashes a password with Argon2d, producing a raw hash @param password string @param salt string @param t_cost Number of iterations @param m_cost Sets memory usage to m_cost kibibytes

Source
hash_argon2i_encode(password : String, salt : String, t_cost : Int32, m_cost : Int32)

Hashes a password with Argon2i, producing an encoded hash @param password string @param salt string @param t_cost Number of iterations @param m_cost Sets memory usage to m_cost kibibytes

Source
hash_argon2i_raw(password : String, salt : String, t_cost : Int32, m_cost : Int32)

Hashes a password with Argon2i, producing a raw hash @param password string @param salt string @param t_cost Number of iterations @param m_cost Sets memory usage to m_cost kibibytes

Source
hash_argon2id_encode(password : String, salt : String, t_cost : Int32, m_cost : Int32)

Hashes a password with Argon2id, producing an encoded hash @param password string @param salt string @param t_cost Number of iterations @param m_cost Sets memory usage to m_cost kibibytes

Source
hash_argon2id_raw(password : String, salt : String, t_cost : Int32, m_cost : Int32)

Hashes a password with Argon2id, producing a raw hash @param password string @param salt string @param t_cost Number of iterations @param m_cost Sets memory usage to m_cost kibibytes

Source
raw_hash(engine_type : EngineType, password : String, salt : String, t_cost : Int32, m_cost : Int32)
Source
raw_hash_buffer(engine_type : EngineType, password : String, salt : String, t_cost : Int32, m_cost : Int32, out_len : Int32 = OUT_LEN)
Source

Nested types