How to validate a SAML signature value -


I have a client who is sending the security key to the encryption they are using Triple DES. Each target sent by them has a signature value which must be valid to give them the necessary privileges. Can you give me a sample code which does this?

Encryption and sign are two different animals Triple DES is a symmetric key method (encryption and decryption The same key used for). On the other hand, digital signatures use asymmetric keys (private / public key pair), where signatures are calculated using the private key, and can be validated using the public key. So if your client wants you to include signatures in XML, then you have to provide them with a public key.

For encryption, which is specific to SML, is to use XMLEncryption, which defines the XML format to include encryption key information and encrypted data in your SAM messages, since a static symmetric The key exchanges are problematic - if it is stopped, the interceptor can encrypt and decrypt any message - instead of a dynamic equivalent Above is to use the key that encrypted using the new is created, a message for every message key, then send it to encrypt the key with the public key of a private / public encryption key pair and a message. The private half part of the key pair used to encrypt the encrypted symmetric key can only be decrypted. Thus, from the important perspective, the most important difference is that to sign, the customer private key will have to share the public key with you, while for encryption, you will hold the private key and the customer To share the public key.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -