You should edit your post, so we can see it when we're answering, and your question doesn't show two answers, when it only has one.
] is the first hit I found. Did you try to search yourself ?
The gist of it is, you have the private key that matches the public key, and some data is sent that's encrypted using these keys. If the data does not decrypt, then the key is not valid.
wrote:please help me if available with I am searching this from a long time.
Weird, google and 30 seconds got me as much as I'd need to code this.