Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pear-Crypt

Status
Not open for further replies.

skiflyer

Programmer
Sep 24, 2002
2,213
US
Anyone ever used the PEAR Crypt library for PHP?

Seems to be what I'm looking for, but pfffffffft, it's barely documented...

Or am I using too much... all I want to do is sign a chunk of XML... I have my Keys stored in .NET compatible XML (which just means I have the Modulus, Exponent, P,Q,DP,D separated out)

Need to sign it in such a way that the signature can be read by a .NET application, so I just want to use the standard SHA1 hash and all that jazz. Anyway, shouldn't be hard, but I'm wondering if anyone has any examples of reading keys in for the Crypt library ... because just like the .NET equivalent, all the examples say (effectively)

GenerateKey()
UseKey()
CreateData()
SignData()
VerifyData()

Wow it worked, that's nice... but in real life we have to change the data into byte streams for signing, and we have to read existing keys etc...

 
Oh nevermind, I'm just switching to PEM keys and exporting the Mod & Exp for .NET, since I just need it to verify, not create.

You know, it's these little ways that MS bucks standards that get so frustrating.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top