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.
| 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 |
| Parameter | Supported values |
|---|---|
| Seed sizes | 32 bytes (256 bits) |
| Flag | Value |
|---|---|
IsDeterministic |
Yes |
IsCryptographicallySecure |
No |
Status: π Educational Only
No vulnerabilities are recorded for this implementation.
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 |