crypto/jwe library
Functions
-
decryptJWE(
String jweCompact, Map< String, dynamic> key) → Future<String> -
Decrypts the provided
jweCompact
using the specifiedkey
. Returns the decrypted payload as a string. -
encryptJWE(
String data, Map< String, dynamic> key, {Map<String, dynamic> ? epk}) → String -
Encrypts the provided
data
using the specifiedkey
and optionalepk
. Returns the compact serialization of the encrypted JWE. -
extractJWEHeader(
String jweCompact) → Map< String, dynamic> -
Extracts and returns the header of the provided
jweCompact
as a map.