File SystemUtilities
Generate a UUID
Use crypto.randomUUID() to generate a UUID v4. It works in Bun, Node.js, and browsers, with no dependencies.
Hash a password
Use Bun.password.hash() to securely hash passwords. It's built into Bun, with no third-party dependencies.
Encode and decode base64 data
Prefer Uint8Array.prototype.toBase64() and Uint8Array.fromBase64() for encoding and decoding base64 data in Bun. These APIs work directly with bytes, so they