Initial commit

This commit is contained in:
2025-08-16 16:11:33 +10:00
commit 91df32c786
39 changed files with 6284 additions and 0 deletions

7
benchmarks/rng.ts Normal file
View File

@@ -0,0 +1,7 @@
import crypto from 'crypto';
import { Bytes } from '../src/crypto/bytes.js';
const rng = crypto.getRandomValues(new Uint8Array(2048));
const bytes = Bytes.from(rng);
console.log(bytes.toBase64());