Altcha.V2.Algorithms.SHA (Altcha v2.0.1)

Copy Markdown View Source

Iterative SHA key derivation for PoW v2 challenges.

Computes: hash(hash(...hash(salt ++ password)...)) for cost total iterations. Supported algorithm strings: "SHA-256", "SHA-384", "SHA-512".

Summary

Functions

Derives a key by iteratively hashing salt concatenated with password.

Functions

derive_key(map, salt, password)

Derives a key by iteratively hashing salt concatenated with password.

Parameters:

  • parameters - challenge parameters (uses :algorithm, :cost, :key_length)
  • salt - raw salt bytes
  • password - raw password bytes (nonce + counter)

Returns the derived key as a binary.