Encrypts arbitrary binary or string data using a password with PBKDF2 key derivation and AES-GCM (256-bit). Encapsulates: [ Magic 4B ("MFS1") | Salt 16B | IV 12B | Ciphertext + Tag ].
Raw string or binary data to encrypt
Encryption password / passphrase
PBKDF2 iteration count (default: 100,000)
Encrypted binary buffer as Uint8Array
Encrypts arbitrary binary or string data using a password with PBKDF2 key derivation and AES-GCM (256-bit). Encapsulates: [ Magic 4B ("MFS1") | Salt 16B | IV 12B | Ciphertext + Tag ].