PHP » PYTHON |
login |
register |
about
|
PYTHON hash_init
is this article helpful?
|
Python replacement for PHP's hash_init
[
edit
| history
]
import hashlib h = hashlib.new(algo) hash_init(PHP 5 >= 5.1.2, PECL hash >= 1.1) hash_init — Initialize an incremental hashing context Description
resource hash_init
( string $algo
[, int $options= 0
[, string $key= NULL
]] )
Parameters
Return ValuesReturns a Hashing Context resource for use with hash_update(), hash_update_stream(), hash_update_file(), and hash_final(). Examples
Example #1 Incremental hashing example
<?php The above example will output: 5c6ffbdd40d9556b73a21e63c3e0e904
See Also
|
more
Recently updated
more
Most requested
more
Last requests
|