Author: imran_okr | Posted on: 7/23/2009 7:52:05 AM | Views : 541

I want to verify the sign data encrypted in other than .NET language using RSA algorithm. I have public key, Signdata and Signauter.Bellow is the code which I write to verify data but RSACryptoServiceProvider. VerifyData always return FALSE kinldy point out what is wrong in my code.
private RSACryptoServiceProvider rsa; protected void Page_Load(object sender, EventArgs e) { string SignedToken = Request.QueryString["Token"]; string SignedToken = System.Text.Encoding.ASCII.GetString(Convert.FromBase64String(SignedToken)); string PlainText = Request.QueryString["PlainText"]; AssignParameter(); ReadPublicKey(); SHA1Managed sha = new SHA1Managed(); Byte[] PlainTextByte = Encoding.UTF8.GetBytes(PlainText); Byte[] Signature = Encoding.UTF8.GetBytes(SignedToken); if (rsa.VerifyData(PlainTextByte,sha, Signature)) Response.Wri ...

Go to the complete details ...