hash ( $string )

SHA-256 hashes the string.

Access

protected

Parameters

Parameter

Type

Required

Description

$string

Required

Returns

Type

Description

string

Raw SHA-256 hashed string.

Source

Method defined in authentication/signature_v4query.class.php | Toggle source view (4 lines) | View on GitHub

protected function hash($string)
{
    return hash('sha256', $string, true);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback