b9j.digest A SHA-256 digester

NAME

b9j.digest - A SHA-256 digester

SYNOPSIS

 ... = b9j.digest.sha256.calculate16( "Hello, World." ) // Hexadecimal, base 16
 ... = b9j.digest.sha256.calculate64( "Hello, World." ) // Base 64
 ... = b9j.digest.sha256.calculate( "Hello, World." ) // Binary string (byte string), base 256

DESCRIPTION

A SHA-256 digester (implementation by Angel Marin http://anmar.eu.org/projects/jssha2/)

METHODS

calculate16( $input )

hexadecimal( $input )

hex( $input )

Calculate the SHA-256 digest of $input and return the result as a hexadecimal (base16) value

calculate64( $input )

base64( $input )

Calculate the SHA-256 digest of $input and return the result as a base64 (= padded) value

calculate256( $input )

calculate( $input )

Calculate the SHA-256 digest of $input and return the result as a binary string (byte string), base 256

SEE ALSO

http://anmar.eu.org/projects/jssha2/

b9j - A JavaScript toolkit

AUTHOR

Robert Krimen <robertkrimen at gmail.com> http://bravo9.com

DOWNLOAD

Available as part of b9j: b9j-latest.zip

SOURCE

You can contribute or fork this project via GitHub:

http://github.com/robertkrimen/b9j/tree/master

 git clone git://github.com/robertkrimen/b9j.git

COPYRIGHT & LICENSE

Copyright 2008 Robert Krimen

Code licensed under the BSD License: http://appengine.bravo9.com/b9j/documentation/license.txt