yes me still trying to get it work will post code once it is working!

2008/4/14 csharpsocial <[EMAIL PROTECTED]>:

>
> Has anyone done any work with oAuth and C# at all?
>
> On Apr 13, 4:45 pm, csharpsocial <[EMAIL PROTECTED]> wrote:
> > This is the code that i would have expected to work but doesn't :(
> > baseSignature is generated with the GenerateSignatureBase() of the
> > auth class
> >
> > X509Certificate2 certificate = new X509Certificate2(@"C:\pub.
> > 1199819524.-1556113204990931254.cer");
> > RSACryptoServiceProvider rsacp = new RSACryptoServiceProvider();
> > string publicKey = certificate.PublicKey.Key.ToXmlString(false);
> > rsacp.FromXmlString(publicKey);
> >
> > byte[] verify = Encoding.UTF8.GetBytes(baseSignature);
> >
> > byte[] signature = Convert.FromBase64String(oauth_signature);
> > bool ok = rsacp.VerifyData(verify, 'SHA1', signature);
> > Console.WriteLine("Success: {0}", ok);
> >
> > Can anyone see where am I going wrong?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to