fn decrypt(encrypted_data: &[u8], passphrase: &str) -> Result<Vec<u8>, String>Expand description
Decrypts the given encrypted data using AES-256-GCM with a key derived from the provided passphrase.
§Arguments
encrypted_data- The encrypted data to decrypt, which should include the salt and nonce.passphrase- The passphrase used to derive the decryption key.
§Returns
A Result containing the decrypted data as a Vec<u8> on success, or an error message as a String on failure.