Click here to Skip to main content
15,998,008 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have public key like
VB
-----BEGIN PUBLIC KEY-----
dfghdfghMIGdMA0GCfghdfgSqGSIfghdbdfhdfghdfukighjkgghdfghdfghdfghdfAd2nK0Zry
nF6HdghdfgfD33B/G4bLfghdOghdfghhdfghdadwIBBimtyigyQ==
-----END PUBLIC KEY-----

HTML
<response><result>0</result><resdesc>success</resdesc><sign>43121BB564B90A725A2449847B14194A9CC9CCE5D2CF06657D3BD140DB68F2FE5B4F995F0D151BD2EA75903D0AC9E7F498A089D4BB0E475284BA392124EE626A9EEC91B46684F305E0BD8E4685060635F8E6C2F4D061203C3B66E205FC1F33DACDC3422D85DC15FC75CBFE6FE28E462A5FA9A479E76904999E470217503A7533</sign></response>

How can I know is this xml encrypted by public key?

XML
HTML
"<response><result>0</result><resdesc>success</resdesc><sign></sign></response>"

encrypted by public key is = sign node
"43121BB564B90A725A2449847B14194A9CC9CCE5D2CF06657D3BD140DB68F2FE5B4F995F0D151BD2EA75903D0AC9E7F498A089D4BB0E475284BA392124EE626A9EEC91B46684F305E0BD8E4685060635F8E6C2F4D061203C3B66E205FC1F33DACDC3422D85DC15FC75CBFE6FE28E462A5FA9A479E76904999E470217503A7533"

in summary I must encrypt xml without sign and get hex
"43121BB564B90A725A2449847B14194A9CC9CCE5D2CF06657D3BD140DB68F2FE5B4F995F0D151BD2EA75903D0AC9E7F498A089D4BB0E475284BA392124EE626A9EEC91B46684F305E0BD8E4685060635F8E6C2F4D061203C3B66E205FC1F33DACDC3422D85DC15FC75CBFE6FE28E462A5FA9A479E76904999E470217503A7533"

But I don`t know how? can you help me?
Posted
Updated 13-Jan-12 5:27am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900