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...
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...