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
Name | Type | Description |
---|---|---|
data | String | The input string to be signed, which will be converted to `Data` using UTF-8 encoding. |
key | String | The key used to sign the input data. |
Type | Description |
---|---|
String | A Base64-encoded string representing the signature of the input data. |