Zikula 1.0.1
[ class tree: Zikula 1.0.1 ] [ index: Zikula 1.0.1 ] [ all elements ]

Class: SHA256Data

Source Location: /includes/classes/hashes/sha256.class.php

Class Overview

hashData
   |
   --SHA256Data

*****************************************************************************


Variables

Methods


Inherited Variables


Class Details

[line 95]
*****************************************************************************

SHA256 static class for PHP4 implemented by feyd _at_ devnetwork .dot. net specification from http://csrc.nist.gov/cryptval/shs/sha256-384-512.pdf

© Copyright 2005 Developer's Network. All rights reserved. This is licensed under the Lesser General Public License (LGPL) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Thanks to CertainKey Inc. for providing some example outputs in Javascript

----- Version 1.0.1 ----------------------------------------------------------

Syntax: string SHA256::hash( string message[, string format ])

Description: SHA256::hash() is a static function that must be called with `message` and optionally `format`. Possible values for `format` are: 'bin' binary string output 'hex' default; hexidecimal string output (lower case)

Failures return FALSE.

Usage: $hash = SHA256::hash('string to hash');

****************************************************************************




[ Top ]


Class Variables

$buf = array()

[line 98]


Type:   mixed


[ Top ]

$chunks =  null

[line 101]


Type:   mixed


[ Top ]



Class Methods


constructor SHA256Data [line 103]

SHA256Data SHA256Data( $str)



Parameters:

   $str  

[ Top ]


Documentation generated on Fri, 18 Jul 2008 21:56:53 +0200 by phpDocumentor 1.4.1