private static Tuple <bool, string> PedrinhoRecebeEValidaMensagem(string cripto, string signa) { var signaOK = EasyRSA.RSAFactory("Felipe", false).VerifySignature(cripto, signa); var decripto = EasyRSA.RSAFactory("Pedrinho", true).Decrypt(cripto); return(new Tuple <bool, string>(signaOK, decripto)); }
private static Tuple <string, string> FelipeCriaMensagem(string mensagemOriginal) { var cripto = EasyRSA.RSAFactory("Pedrinho", false).Encrypt(mensagemOriginal); var signa = EasyRSA.RSAFactory("Felipe", true).Sign(cripto); return(new Tuple <string, string>(cripto, signa)); }