Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Zozi96/hash-forge/llms.txt
Use this file to discover all available pages before exploring further.
AlgorithmType is a Literal type alias that enumerates every algorithm identifier accepted by Hash Forge’s public API. Wherever an algorithm name is expected — HashManager.from_algorithms, HashManager.quick_hash, PasswordHashPolicy fields, HashManagerBuilder.with_algorithm, and more — the parameter is typed as AlgorithmType. This gives you IDE autocompletion for all valid values and lets static type checkers (mypy, pyright, Pylance) catch misspellings or unsupported algorithm names at analysis time rather than at runtime.
Full Definition
Algorithm Reference
| Identifier | Category | Notes |
|---|---|---|
"pbkdf2_sha256" | password | NIST-recommended KDF; FIPS-compatible. |
"pbkdf2_sha1" | legacy | Older PBKDF2 variant; verify-only in most policies. |
"bcrypt" | password | Classic bcrypt; wide ecosystem support. |
"bcrypt_sha256" | password | bcrypt pre-hashed with SHA-256; handles long passwords. |
"argon2" | password | Argon2id; winner of Password Hashing Competition. Recommended default. |
"scrypt" | password | Memory-hard KDF; good alternative to Argon2. |
"blake2" | digest | Fast cryptographic hash; not a password KDF. |
"blake2b" | digest | Alias for "blake2" — see note below. |
"blake3" | digest | Next-generation fast hash; not a password KDF. |
"whirlpool" | deprecated | Legacy Miyaguchi–Preneel hash; avoid for new hashes. |
"ripemd160" | legacy | 160-bit hash; legacy verify only. |
"RIPEMD-160" | legacy | Alias for "ripemd160" — see note below. |
"sha3_256" | digest | SHA-3 (Keccak) at 256 bits; not a password KDF. |
"sha3_512" | digest | SHA-3 (Keccak) at 512 bits; not a password KDF. |
Aliases
Two identifiers are aliases for canonical algorithm names. Hash Forge resolves them transparently ininspect, classify_algorithm, and canonical_algorithm:
"blake2b"is an alias for"blake2". Both are accepted anywhereAlgorithmTypeis expected and produce identical hashers."RIPEMD-160"is an alias for"ripemd160". The uppercase form mirrors the algorithm’s official name and is accepted for compatibility.
Prefer the canonical forms (
"blake2", "ripemd160") in new code to avoid confusion. The aliases are kept for compatibility with existing hash strings and third-party tooling.Usage Example
Annotate any function that accepts an algorithm name withAlgorithmType to get full static analysis coverage:
AlgorithmType in configuration objects or dependency-injection containers:
py.typed Marker
Hash Forge ships a py.typed marker file, which signals to PEP 561–aware type checkers that the package provides inline type information. This means mypy, pyright, and Pylance will pick up AlgorithmType and all other type annotations from Hash Forge automatically — no stub packages or extra configuration required.
