XML to PEM in Node.js
问题 I'm stuck with the crypto api because I know little about cryptography. I have this XML: <RSAKeyValue> <Modulus>1znidPBIcMcO7K/53tkTSyKqxlG5Mcws8kVtijS4tyEU4W/FEVWYpOtv+Stnb4Vt</Modulus> <Exponent>AQAB</Exponent> </RSAKeyValue> Signature: rNbdUP-p4pEGfwQSwR6VPvAVZ-sZu-ptgw8SofYYmNTlfUB9iUbb593eCAuT5jsqDTC Original data: <xml>...some big xml...</xml> I want to verify the signature, how do I do that? (I'm using node v0.10.18) 回答1: I'm not really a node.js dev, so this is super hacky.. Here's a