[PKI refers to a set of security services for authentication, encryption and digital certificate management under which documents are encrypted with a private key and decrypted using a publicly available key accessible to the recipient via a network.
I have read somewhere that documents are encrypted using public key and decrypted using private key ??
I am looking if somebody clear the clouds .......thanks in advance ....
Rinku first take a look at this . Any user has two keys associated with him one public key and another is private. The terms themselves are self explanatory, the public key is made available to all those who wish to communicate confidential information to the user. And the user is in charge of his private key. Now both the keys share a relation that anything encrypted with the public key can only be decrypted with the private key. In addition, although the keys share a mathematical relation, its nearly impossible to derive the private key using the public one. More on public key cryptography here . More on PKI here.
I think I got the solution :Just want to share with everyone:
A. In CASE of XML Encryption:
1)Sender uses public key of the reciever to encrypt the message. 2)Reciever uses corresponding private key to decrypt the message.In this situation private key is not transferred as the reciever owns the private key.
B. In CASE of XML Signature:
1)Sender uses its own private key to digitally sign the message to be sent. 2) The receiver uses sender's public key to verify the digital Signature.