Skip to main content
Generates a random 32-byte AES key and returns it encoded in base64 (44 characters).

Returns

string - exactly 44 characters of base64, encoding 32 raw bytes.

Example

Generates keys with high entropy to ensure cryptographic strength.