Hawkynt

ChaCha12 (PRNG)

ChaCha stream cipher variant with 12 rounds designed by Daniel J. Bernstein. Counter-based PRNG providing excellent statistical properties and high performance. Balanced variant offering good performance and quality.

Properties

Property Value
Category Random Number Generators
Sub-category Pseudorandom Number Generator
Variant ChaCha12
Security status πŸŽ“ Educational Only
Complexity Advanced
Inventor Daniel J. Bernstein
Year 2008
Origin πŸ‡ΊπŸ‡Έ United States
Source algorithms/random/chacha.js

Parameters

Parameter Supported values
Seed sizes 32 bytes (256 bits)

Capabilities

Flag Value
IsDeterministic Yes
IsCryptographicallySecure No

Security

Status: πŸŽ“ Educational Only

No vulnerabilities are recorded for this implementation.

Documentation

References

Test vectors

1 vector ship with this algorithm and run in the test suite. Byte values are hexadecimal.

Vector 1 β€” ChaCha12 zero key and nonce (32-byte key): First 16 bytes

Field Value
seed 0000000000000000000000000000000000000000000000000000000000000000
nonce 0000000000000000
counter 0000000000000000
outputSize 16
input null
expected 9bf49a6a0755f953811fce125f2683d5

← All algorithms