Password hashing

Earworm-PHC

Earworm (PHC): a Password Hashing Competition submission for password hashing

unverified Root API only
Unverified tier.

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–2015
  1. Password Hashing Competition announced

    Password Hashing Competition
  2. Earworm published by Daniel Franke

  3. 24 candidates submitted; nine finalists named in December

    Password Hashing Competition
  4. Argon2 selected; special recognition for Catena, Lyra2, Makwa and yescrypt

    Password Hashing Competition

How it works

  1. The password and salt are absorbed into a memory-hard state.
  2. The state is mixed over several passes, with the time and memory costs set by the parameters.
  3. 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

Password hashing researchInteroperability tests with PHC-format hashesNot recommended for new password storage

Sizes

FieldBytesMeaning
out16 – 1,024Output
salt0 – 32Salt

Parameters

NameTypeRangeDefaultRequired
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)

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently 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).