@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix mcr: <https://registry.apicrafter.io/vocab#> .
@prefix dt: <https://registry.apicrafter.io/datatype/> .
@prefix cat: <https://registry.apicrafter.io/category/> .
@prefix country: <https://registry.apicrafter.io/country/> .
@prefix tool: <https://registry.apicrafter.io/tool/> .

dt:argon2_hash a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:topConceptOf <https://registry.apicrafter.io/> ;
    skos:notation "argon2_hash" ;
    skos:prefLabel "Argon2 password hash (PHC string)"@en ;
    skos:definition "Password hash of Argon2 (RFC 9106), the winner of the Password Hashing Competition, in the PHC string format: $argon2id$ (or argon2i, argon2d), the version v=19, the memory, time and parallelism costs m, t and p, then the salt and the hash in Base64 without padding. Argon2id is the default of libsodium crypto_pwhash."@en ;
    skos:example "$argon2id$v=19$m=19456,t=2,p=1$ZXhhbXBsZXNhbHQ$iZkkU2r9X5jHLoSY5bV80kDSU5BEB+SBOn0Rw4bjgLQ" ;
    mcr:status "draft" ;
    mcr:isPII false ;
    mcr:classification "identifier" ;
    mcr:regexp "^\\$argon2(?:id|i|d)\\$(?:v=(?:16|19)\\$)?m=[0-9]{1,10},t=[0-9]{1,10},p=[0-9]{1,3}(?:,keyid=[A-Za-z0-9+/]{0,11})?(?:,data=[A-Za-z0-9+/]{0,43})?\\$[A-Za-z0-9+/]{11,64}\\$[A-Za-z0-9+/]{16,86}$" ;
    rdfs:seeAlso <https://www.rfc-editor.org/rfc/rfc9106> ;
    rdfs:seeAlso <https://github.com/C2SP/C2SP/blob/main/phc-strings.md> ;
    rdfs:seeAlso <https://en.wikipedia.org/wiki/Argon2> .
