rsaSign function

String rsaSign({
  1. required String text,
  2. required String privateKeyPem,
})

Sign text using RSA private key

Arguments

  • text - The text to sign
  • private_key_pem - The RSA private key in PEM format

Returns

  • Result<String, CryptoError> - Base64 encoded signature or error

Implementation

String rsaSign({required String text, required String privateKeyPem}) =>
    RustLib.instance.api.crateRsaSign(text: text, privateKeyPem: privateKeyPem);