module Argon2::Engine
Defined in:
engine.crClass Method Summary
-
.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
-
.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
-
.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
- .encoded_hash(engine_type : EngineType, password : String, salt : String, t_cost : Int32, m_cost : Int32)
- .encoded_verify(engine_type : EngineType, password : String, encoded_string : String)
-
.generate_salt(salt_size = DEFAULT_SALT_LEN)
Generate a random hex salt string - defaults to default length recommended by the argon2 spec
-
.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
-
.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
-
.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
-
.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
-
.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
-
.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
- .raw_hash(engine_type : EngineType, password : String, salt : String, t_cost : Int32, m_cost : Int32)
- .raw_hash_buffer(engine_type : EngineType, password : String, salt : String, t_cost : Int32, m_cost : Int32, out_len : Int32 = OUT_LEN)
Class Method Detail
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
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
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
Generate a random hex salt string - defaults to default length recommended by the argon2 spec
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
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
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
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
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
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