-
-
Save parzibyte/effcacce72151488760c72ce2e6f0d8e 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
bool verificarFirma( | |
String firmado, String plano, String clavePublicaComoCadena) { | |
final clavePublica = RSAKeyParser().parse(clavePublicaComoCadena); | |
final firmador = | |
Signer(RSASigner(RSASignDigest.SHA256, publicKey: clavePublica)); | |
var coinciden = firmador.verify64(plano, firmado); | |
return coinciden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment