Skip to main content
reference

PrivMXCryptoExtensions

Protocol declaring cryptographic operations using Swift types.

Methods​

signBase64(dataπŸ”‘)​

Signs the provided Base64-encoded string using the given key. This function converts the input string to `Data` using UTF-8 encoding, signs the data using the provided key, and returns the signature as a Base64-encoded string.

func signBase64(
data: String,
key: String
) throws -> String

NameTypeDescription
dataStringThe input string to be signed, which will be converted to `Data` using UTF-8 encoding.
keyStringThe key used to sign the input data.

TypeDescription
String A Base64-encoded string representing the signature of the input data.