Quantcast

SHA-256

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

SHA-256

Taymon A. Beal
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: SHA-256

Loren Cahlander
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" <[hidden email]> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: SHA-256

Joe Wicentowski
In reply to this post by Taymon A. Beal
Claudius's EXPath crypto library, available via the Dashboard's Package Manager, has that, I believe.  See:

http://exist-db.org/exist/apps/public-repo/packages/expath-crypto-exist-lib.html

Sent from my iPhone

On Tuesday, July 30, 2013 at 9:00 PM, Taymon A. Beal 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
https://lists.sourceforge.net/lists/listinfo/exist-open


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: SHA-256

Claudius Teodorescu
Hi,

Yes, the EXPath module that Joe pointed out above allows hashing binary data with SHA-256, see [1].

Claudius

[1] http://kuberam.ro/specs/expath/crypto/crypto.html#hash-function
Loading...