Crypt.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Crypt
- Version
- $Id: Crypt.php 25024 2012-07-30 15:08:15Z rob $
\Zend_Crypt
Package: Zend\Crypt
- Children
- \Zend_Crypt_Hmac
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties


array $_supportedAlgosMhash = array('adler32', 'crc32', 'crc32b', 'gost', 'haval128', 'haval160', 'haval192', 'haval256', 'md4', 'md5', 'ripemd160', 'sha1', 'sha256', 'tiger', 'tiger128', 'tiger160')
static
Default value
array('adler32', 'crc32', 'crc32b', 'gost', 'haval128', 'haval160', 'haval192', 'haval256', 'md4', 'md5', 'ripemd160', 'sha1', 'sha256', 'tiger', 'tiger128', 'tiger160')
Details- Type
- array


array $_supportedAlgosOpenssl = array('md2', 'md4', 'mdc2', 'rmd160', 'sha', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512')
static
Default value
array('md2', 'md4', 'mdc2', 'rmd160', 'sha', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512')
Details- Type
- array
Methods


_detectHashSupport(string $algorithm) : void
static
Parameters
Throws
Name | Type | Description |
---|---|---|
$algorithm | string |
Exception | Description |
---|---|
\Zend_Crypt_Exception |


_digestHash(string $algorithm, string $data, bool $binaryOutput) : string
static
Parameters
Returns
Name | Type | Description |
---|---|---|
$algorithm | string | |
$data | string | |
$binaryOutput | bool |
Type | Description |
---|---|
string |


_digestMhash(string $algorithm, string $data, bool $binaryOutput) : string
static
Parameters
Returns
Name | Type | Description |
---|---|---|
$algorithm | string | |
$data | string | |
$binaryOutput | bool |
Type | Description |
---|---|
string |


_digestOpenssl(string $algorithm, string $data, bool $binaryOutput) : string
static
Parameters
Returns
Name | Type | Description |
---|---|---|
$algorithm | string | |
$data | string | |
$binaryOutput | bool |
Type | Description |
---|---|
string |