sha512() public static method

Computes a digest hash value for the given data using the given method, and returns a raw or binhex encoded string, see: http://us1.php.net/manual/en/function.openssl-digest.php
public static sha512 ( string $data ) : string
$data string
return string
Exemplo n.º 1
0
 public function testSha512()
 {
     $data = array(array('test data', '0e1e21ecf105ec853d24d728867ad70613c21663a4693074b2a3619c1bd39d66b588c33723bb466c72424e80e3ca63c249078ab347bab9428500e7ee43059d0d'));
     foreach ($data as $datum) {
         $this->assertSame($datum[1], Util::sha512($datum[0]));
     }
 }