{ "name": "argon2", "version": "20190702", "summary": "libargon2: the Argon2 password hash (the reference library of the Password Hashing Competition) and its argon2 program", "category": "library", "license": "CC0-1.0 OR Apache-2.0", "homepage": "https://github.com/P-H-C/phc-winner-argon2", "source": { "url": "https://github.com/P-H-C/phc-winner-argon2/archive/refs/tags/20190702.tar.gz", "sha256": "daf972a89577f8772602bf2eb38b6a3dd3d922bf5724d45e7f9589b5e830442c" }, "watch": {"kind": "github-tag", "repo": "P-H-C/phc-winner-argon2", "tag_regex": "^([0-9]{8})$"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "printf password | bin/argon2 somesalt -t 2 -m 16 -p 4 -l 24 | has '^Hash:[[:space:]]*45d7ac72e76f242b20b77b9bf9bf9d5915894e669a24e6c6$' && check_lib libargon2 argon2.h 'char enc[128]; if (argon2id_hash_encoded(2, 1024, 1, \"bvs-pass\", 8, \"saltsalt\", 8, 32, enc, sizeof enc) != ARGON2_OK) return 1; if (argon2id_verify(enc, \"bvs-pass\", 8) != ARGON2_OK) return 2; if (argon2id_verify(enc, \"bvs-pasx\", 8) != ARGON2_VERIFY_MISMATCH) return 3; printf(\"libargon2: an argon2id hash verified, a wrong password refused (%.30s...)\\n\", enc); return 0;' | grep 'wrong password refused'" }