signature

Security token in message transfered by SSL

Hi, I need in WCF ensure soap header like this: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;SOAP-ENV:Header&gt; <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1"> <wsse:BinarySecurityToken xmlns:wsu="http:...

Overriding super class methods in Objective-C

If subclass in objective-c wants to override a super class's method, does it have to match the return type too? ...

SAML: Why is the certificate within the Signature???

Hi, I have to implement SSO with SAML for my company's website (as the relying party). An essential part off course is the verification of the signature. Here is the signature part of a sample SAML from our partner company (asserting party): <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt; <ds:SignedInfo xmlns:ds="http:...

verifying a WCF signed SOAP message

I have a problem verifying a SOAP message timestamp and body. Before starting to write any code I'm trying to verify it by myself, these are the steps I followed to verify the timestamp: 1) Extract the timestamp tag, add any used namespace and write it to a file: <u:Timestamp u:Id="uuid-cd1febd3-a76a-4148-8a3e-367aee62293d-1" xmlns:u=...

How to separate virus signatures in a virus signature file

I am doing an anti-virus project, I have a signature file and I want to separate the signatures in it. It is all beside each other and in hex, is there is a delimiter or something?? Thank you for your help. Abdelrahman. ...

How to sign a custom JCE security provider

Sun's PKCS11 JCE security provider is lacking some functionality we need. So I wrote an enhanced version of it using the original sources. Unfortunately the JCE infrastructure rejects the new provider "JCE cannot authenticate the provider" because it is not properly signed. javax.crypto.JceSecurity.verifyProviderJar(...) throws. (it ca...

How can I use revisions to avoid invalidating digital signatures in a PDF?

Using Acrobat 9, if I sign a PDF using a self-signed certificate and then edit the PDF after I sign it, Acrobat will inform me that there is a valid signature on the document but that the document also has unsigned changes. If I then sign the PDF again and look in the signature panel, it will show the first signed revision with a valid s...

Facebook authentication script from ASP to PHP

Im trying to convert the code below to a php version, if anyone can help thanks. private bool IsValidFacebookSignature() { //keys must remain in alphabetical order string[] keyArray = { "expires", "session_key", "ss", "user" }; string signature = ""; foreach (string key in keyArray) signa...

Generate the facebook signature using my applications secret key?

When you build a website with "facebook connect" and you log into facebook with your username and password, facebook then sets a session on your website. In that session is a generated "signature" This signature is created by combining the data of your "application secret" that only you and Facebook know, and the result MD5 hashed. I ...

How to sign an XML file with a RSA key in .NET?

I am trying to sign an XML file in C# .NET 3.5 with a private RSA Key generated by OpenSSL. Here is how I proceeded: I converted the RSA key from PEM format to XML format using the chilkat framework (www.example-code.com/csharp/cert_usePrivateKeyFromPEM.asp) With my XML key, I am now able to use native .NET Functions, which I prefer. S...

Bitmap (of a signature) comparison in c#

We have a for fun project which require us to compare two black and white bitmaps of two signature and say whether they are the same persons signature. As this is just two loaded bitmaps rather than data captured from a tablet the approach is going to be a little different to normal signature recognition. I am thinking it would require...

Mobile Devices Advice

Hi there, I would like to develop on a mobile device, probably with Windows Mobile platform, which device would you guys recommend for me to use? But one requirement on the device is that I need that device to be able to capture signature (human writing on the device). Many Thanks ...

How do I sign a google federated login?

Ok Im having more luck with G'oogle's federated log in, I'm at the point where you get the following params back from Google. [openid_ns] => http://specs.openid.net/auth/2.0 [openid_mode] => id_res [openid_op_endpoint] => https://www.google.com/accounts/o8/ud [openid_response_nonce] => 2010-01-02T14:58:22ZvP-t8tJXqGWaPw [openid_return_t...

Signing requests in Python for OAuth

Hi, currently I'm interfacing the Twitter API using the OAuth protocol and writing the code in Python. As most of the users out there, I think the toughest part of the specs is dealing with signatures. After wandering around the web in search for a solution, I decided to go for my custom code, so as to have a better understanding of wha...

How to validate a SAML signature value

Hi, I have a customer who is sending a Security key. The encryption they are using is triple DES. Every Assertion they send has a signature value which needs to be validated to give them necessary privileges. Can you give me a sample code which does this? Thanks, King ...

How do I generate a signature for a settle request in Amazon FPS Marketplace?

The documentation is really awful, and while creating a button to reserve a credit card payment is fairly straightforward, being able to release that payment is a pain. I'm having most trouble with actually generating that signature. Anyone use FPS before and have an idea? Thanks! ...

XML Signature: How to calculate the digest value?

I have an XML like this <?xml version="1.0" encoding="utf-8"?> <foo> <bar> <value>A</value> </bar> <bar> <value>B</value> </bar> <baz> <value>C</value> </baz><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;&lt;SignedInfo&gt;&lt;CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-2001...

what is the difference between function declaration and signature?

In C or C++ what is the difference between function declaration and function signature? I know something of function declaration but function signature is totally new to me. What is the point of having the concept of function signature? What are the two concepts used for actually? Thanks! ...

Getting ptr from memory address with c++

Im trying to get the engine version of a game from a global pointer, but I am fairly new to this. Here is a very small example I found... http://ampaste.net/mb42243 And this is the disassembly for what I am trying to get, the pointer (gpszVersionString) is the highlighted line (line 5) http://ampaste.net/m2a8f8887 So what I need to f...

C++ Access violation when calling dll function

I have a function definition in my VC++ Win32 DLL DEMO2_API void ProcessData(char* i_buff, unsigned short i_len, char* o_buf, unsigned *o_len, unsigned short *errorCode) { __describe (i_buff,&i_len,o_buf,o_len,errorCode); } This dll function is called by a c# application. When called, it generate access violation exception. Afte...