Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active November 25, 2022 16:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/effcacce72151488760c72ce2e6f0d8e to your computer and use it in GitHub Desktop.
Save parzibyte/effcacce72151488760c72ce2e6f0d8e to your computer and use it in GitHub Desktop.
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