Password hashing

RIG-PHC

Rig (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 RIG-PHC

RIG-PHC is a password hashing function from the Rig (PHC) family. It uses a 16–64-byte output and a 0–64-byte salt. It takes the parameters m_cost (default 4), 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

Rig 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.

Rig 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 rig-phc, with output 16 to 64 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. Rig published by Donghoon Chang, Arpan Jati, Sweta Mishra, Somitra Kumar Sanadhya

  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 – 64Output
salt0 – 64Salt

Parameters

NameTypeRangeDefaultRequired
m_cost u32 1 – 10 4 no
out_len u32 16 – 64 32 no
t_cost u32 1 – 8 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", "rig-phc", None, b"correct horse")[0]   # PHC string, fresh salt
ok  = root.check("pwhash_verify", "rig-phc", None, b"correct horse", phc)

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

Similar names

Looking for something else?

Frequently asked questions

What is RIG-PHC?

RIG-PHC is a password hash in the Rig (PHC) family. Rig is a password hashing scheme submitted to the Password Hashing Competition, held from 2014 to 2015.

What are the RIG-PHC sizes?

In NextSSL, RIG-PHC uses: output 16 to 64 bytes.

Who designed RIG-PHC and when?

RIG-PHC belongs to the Rig (PHC) family, first published in 2014 by Donghoon Chang, Arpan Jati, Sweta Mishra, Somitra Kumar Sanadhya. Its origin: Password Hashing Competition submission (2014-2015).

Which standards define RIG-PHC?

RIG-PHC is referenced by Password Hashing Competition submission (2014-2015), PHC API PHS().

Is RIG-PHC safe to use?

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