node-saml / xml-crypto

Xml digital signature and encryption library for Node.js
MIT License
197 stars 171 forks source link

not able to sign messages with rsa256 digest #141

Closed phra closed 6 years ago

phra commented 6 years ago

hi,

I'm trying to sign my data with http://www.w3.org/2001/04/xmlenc#sha256 as my digest algorithm, but I could not find a way to configure it without updating the source code at https://github.com/yaronn/xml-crypto/blob/master/lib/signed-xml.js#L442 in:

"digestAlgorithm": digestAlgorithm ? digestAlgorithm : "http://www.w3.org/2001/04/xmlenc#sha256",
yaronn commented 6 years ago

Per the documentation for addReference in README:

addReference(xpath, [transforms], [digestAlgorithm])

phra commented 6 years ago

@yaronn thanks for that. i also need the ability to encrypt and decrypt messages, are you working on that part?

yaronn commented 6 years ago

I am not planing to work on this in the near future.