Earworm-PHC
Earworm (PHC): a Password Hashing Competition submission for password hashing
Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Earworm-PHC
Earworm-PHC is a password hashing function from the Earworm (PHC) family. It uses a 16–1,024-byte output and a 0–32-byte salt. It takes the parameters m_cost (default 2), out_len (default 32) and t_cost (default 1). Its registry entry cites Password Hashing Competition submission (2014-2015), PHC API PHS(). NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
Earworm is a password hashing scheme submitted to the Password Hashing Competition, held from 2014 to 2015. It is not a PHC finalist, and NextSSL lists it as unverified, so it is not a recommended choice for new password storage.
Earworm follows the PHC API, PHS(), so it takes a password, salt, output length and tuning parameters through the same interface as Argon2. NextSSL archives it as earworm-phc, with output 16 to 1024 bytes. The Password Hashing Competition aimed to replace older password hashes with schemes that resist GPU and ASIC cracking. Argon2 was selected as the winner in 2015 and is specified in RFC 9106.
Password hashing competition entries were judged on memory hardness, side-channel resistance and tunability. Most candidates received limited public analysis, so NextSSL's tier is unverified rather than a recommendation. Entries were compared on memory hardness, resistance to time-memory trade-offs, side-channel resistance and tunability. The memory, time and parallelism parameters are set by the caller, so the same password gives different hashes under different settings.
For new systems, use Argon2id, which won the Password Hashing Competition and is specified in RFC 9106. Keep this entry for research, comparison and interoperability tests only. The Password Hashing Competition aimed to replace older password hashes with schemes that resist GPU and ASIC cracking. Argon2 was selected as the winner in 2015 and is specified in RFC 9106. Entries were compared on memory hardness, resistance to time-memory trade-offs, side-channel resistance and tunability.
History
2013–2015Password Hashing Competition announced
Password Hashing CompetitionEarworm published by Daniel Franke
24 candidates submitted; nine finalists named in December
Password Hashing CompetitionArgon2 selected; special recognition for Catena, Lyra2, Makwa and yescrypt
Password Hashing Competition
How it works
- The password and salt are absorbed into a memory-hard state.
- The state is mixed over several passes, with the time and memory costs set by the parameters.
- The final state is output as the hash at the requested length.
Security notes
NextSSL records no independent review for this candidate, so no security claim is made. Use Argon2id for password storage.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 16 – 1,024 | Output |
| salt | 0 – 32 | Salt |
Parameters
| Name | Type | Range | Default | Required |
|---|---|---|---|---|
| m_cost | u32 | 0 – 12 | 2 | no |
| out_len | u32 | 16 – 1024 | 32 | no |
| t_cost | u32 | 1 – 64 | 1 | no |
Parameters are passed as a string, for example nextssl_mac("hmac", "hash=sha512", …). Omitted parameters take their declared default.
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
phc = root.call("pwhash", "earworm-phc", None, b"correct horse")[0] # PHC string, fresh salt
ok = root.check("pwhash_verify", "earworm-phc", None, b"correct horse", phc)
nextssl_root_pwhash("earworm-phc", NULL, password, out);
nextssl_root_pwhash_verify("earworm-phc", NULL, password, phc);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_pwhash_in(reg::all(), Policy::Any, "earworm-phc", &Params::new())?;
let phc = alg.hash(b"correct horse")?; // PHC string
let ok = alg.verify(b"correct horse", &phc)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
More password hashing
All 30Frequently asked questions
What is Earworm-PHC?
Earworm-PHC is a password hash in the Earworm (PHC) family. Earworm is a password hashing scheme submitted to the Password Hashing Competition, held from 2014 to 2015.
What are the Earworm-PHC sizes?
In NextSSL, Earworm-PHC uses: output 16 to 1,024 bytes.
Who designed Earworm-PHC and when?
Earworm-PHC belongs to the Earworm (PHC) family, first published in 2014 by Daniel Franke. Its origin: Password Hashing Competition submission (2014-2015).
Which standards define Earworm-PHC?
Earworm-PHC is referenced by Password Hashing Competition submission (2014-2015), PHC API PHS().
Is Earworm-PHC safe to use?
Earworm-PHC is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).
Related families
The Password Hashing Competition winner: memory-hard hashing standardised in RFC 9106
Balloon hashingA memory-hard password hash with provable bounds and data-independent access
Lyra2 (PHC)Lyra2 (PHC): a Password Hashing Competition submission for password hashing
scryptColin Percival's memory-hard key derivation function, standardised in RFC 7914
yescryptAn scrypt-derived memory-hard password hash, now the default in many Linux distributions