
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@aauth/interaction-code
Advanced tools
AAuth interaction code generation and canonicalization (Crockford base32, spec §2.6)
AAuth interaction code generation and canonicalization, implementing the Crockford base32 format specified in draft-hardt-oauth-aauth-protocol §2.6.
npm install @aauth/interaction-code
generateCode(): stringGenerates an 8-symbol Crockford base32 interaction code (40 bits of entropy) in canonical XXXX-XXXX form. The returned value is ready to use as a storage key.
import { generateCode } from '@aauth/interaction-code'
const code = generateCode() // e.g. "A1B2-C3D4"
store.set(code, pendingData)
canonicalizeCode(input: string): stringCanonicalizes user-presented input to XXXX-XXXX form for storage lookup. Handles:
I/L → 1, O → 0import { canonicalizeCode } from '@aauth/interaction-code'
// All of these look up the same stored record:
store.get(canonicalizeCode('a1b2c3d4')) // → 'A1B2-C3D4'
store.get(canonicalizeCode('A1B2-C3D4')) // → 'A1B2-C3D4'
store.get(canonicalizeCode('a1b2-c3d4')) // → 'A1B2-C3D4'
CROCKFORD32: stringThe Crockford base32 alphabet: 0123456789ABCDEFGHJKMNPQRSTVWXYZ (omits I, L, O, U).
XXXX-XXXX — hyphen at position 4 for human readability onlyXXXX-XXXX — canonical form includes hyphencanonicalizeCode(userInput) before comparingFAQs
AAuth interaction code generation and canonicalization (Crockford base32, spec §2.6)
We found that @aauth/interaction-code demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.