note 104362 added to function.openssl-digest

From: Date: Fri, 10 Jun 2011 15:34:26 +0000
Subject: note 104362 added to function.openssl-digest
Groups: php.notes 
Request: Send a blank email to php-notes+get-180425@lists.php.net to get a copy of this message
Example: // $fileBuffer is buffer of file in open mode or a generic stream... $fingerPrint = openssl_digest ($fileBuffer , "sha512"); $method parameter is one of hash_algos() array; <? echo"<PRE>"; var_dump(hash_algos()); echo "</PRE>" ?> Output: array(42) { [0]=> string(3) "md2" [1]=> string(3) "md4" [2]=> string(3) "md5" [3]=> string(4) "sha1" [4]=> string(6) "sha224" [5]=> string(6) "sha256" [6]=> string(6) "sha384" [7]=> string(6) "sha512" [8]=> string(9) "ripemd128" [9]=> string(9) "ripemd160" [10]=> string(9) "ripemd256" [11]=> string(9) "ripemd320" [12]=> string(9) "whirlpool" [13]=> string(10) "tiger128,3" [14]=> string(10) "tiger160,3" [15]=> string(10) "tiger192,3" [16]=> string(10) "tiger128,4" [17]=> string(10) "tiger160,4" [18]=> string(10) "tiger192,4" [19]=> string(6) "snefru" [20]=> string(9) "snefru256" [21]=> string(4) "gost" [22]=> string(7) "adler32" [23]=> string(5) "crc32" [24]=> string(6) "crc32b" [25]=> string(7) "salsa10" [26]=> string(7) "salsa20" [27]=> string(10) "haval128,3" [28]=> string(10) "haval160,3" [29]=> string(10) "haval192,3" [30]=> string(10) "haval224,3" [31]=> string(10) "haval256,3" [32]=> string(10) "haval128,4" [33]=> string(10) "haval160,4" [34]=> string(10) "haval192,4" [35]=> string(10) "haval224,4" [36]=> string(10) "haval256,4" [37]=> string(10) "haval128,5" [38]=> string(10) "haval160,5" [39]=> string(10) "haval192,5" [40]=> string(10) "haval224,5" [41]=> string(10) "haval256,5" } NO BERLUSCONI ! W ITALY ! ;-) ---- Server IP: 69.147.83.197 Probable Submitter: 94.90.124.34 ---- Manual Page -- http://www.php.net/manual/en/function.openssl-digest.php Edit -- https://master.php.net/note/edit/104362 Del: integrated -- https://master.php.net/note/delete/104362/integrated Del: useless -- https://master.php.net/note/delete/104362/useless Del: bad code -- https://master.php.net/note/delete/104362/bad+code Del: spam -- https://master.php.net/note/delete/104362/spam Del: non-english -- https://master.php.net/note/delete/104362/non-english Del: in docs -- https://master.php.net/note/delete/104362/in+docs Del: other reasons-- https://master.php.net/note/delete/104362 Reject -- https://master.php.net/note/reject/104362 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180425) next »