hardguard25
JavaScript reference implementation of HardGuard25, an open standard for human-safe identifiers.
0 1 2 3 4 5 6 7 8 9 A C D F G H J K M N P R U W Y
Install
npm install hardguard25
Quickstart
import { generate, validate, normalize, checkDigit, verifyCheckDigit } from 'hardguard25';
generate(8);
generate(8, { checkDigit: true });
validate("ac3h-7puw");
normalize("ac3h-7puw");
checkDigit("AC3H7PUW");
verifyCheckDigit("AC3H7PUWN");
Generation uses crypto.getRandomValues and unbiased rejection sampling. HardGuard25 is an identifier alphabet, not an authentication, authorization, encryption, or global uniqueness protocol.
Documentation