There is util:hash()
The algorithm is the parameter that is passed to java.security.MessageDigest.getInstance($algorithm)

util:hash

util:hash($message as item(), $algorithm as xs:stringas xs:string

Calculates a hashcode from a string based on a specified algorithm.

Parameters:
$messageThe string to generate the hashcode from
$algorithmThe algorithm used to generate the hashcode
Returns:
xs:string : the hashcode

util:hash

util:hash($message as item(), $algorithm as xs:string$base64flag as xs:boolean
as xs:string

Calculates a hashcode from a string based on a specified algorithm.

Parameters:
$messageThe string to generate the hashcode from
$algorithmThe algorithm used to generate the hashcode
$base64flagThe flag that specifies whether to return the result as Base64 encoded
Returns:
xs:string : the hashcode


On Jul 30, 2013, at 9:00 PM, "Taymon A. Beal" <taymonbeal@gmail.com> wrote:

Hello,

Is there a library module available anywhere to perform a SHA-256 hash on binary data in eXist? Failing that, is there another way to do it, say by wrapping a Java method?

Thanks,
Taymon A. Beal
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk_______________________________________________
Exist-open mailing list
Exist-open@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open