-
-
Save parzibyte/0931e721bd9e9aef759275519387c915 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String firmar(String clavePrivadaParaFirmarComoCadena, String mensaje) { | |
final clavePrivada = RSAKeyParser().parse(clavePrivadaParaFirmarComoCadena); | |
final firmador = | |
Signer(RSASigner(RSASignDigest.SHA256, privateKey: clavePrivada)); | |
String mensajeFirmado = firmador.sign(mensaje).base64; | |
return mensajeFirmado; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment