downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

hash_file> <hash_algos
[edit] Last updated: Fri, 17 May 2013

view this page in

hash_copy

(PHP 5 >= 5.3.0)

hash_copyCopia un recurso de contexto de cifrado

Descripción

resource hash_copy ( resource $context )

Parámetros

context

Contexto para cifrado que se obtiene mediante hash_init().

Valores devueltos

Devuelve una copia del recurso de un contexto de cifrado.

Ejemplos

Ejemplo #1 Ejemplo de hash_copy()

<?php
$context 
hash_init("md5");
hash_update($context"data");

/* copy context to be able to continue using it */
$copy_context hash_copy($context);

echo 
hash_final($context), "\n";

hash_update($copy_context"data");
echo 
hash_final($copy_context), "\n";
?>

El resultado del ejemplo sería:

8d777f385d3dfec8815d20f7496026dc
511ae0b1c13f95e5f08f1a0dd3da3d93



add a note add a note User Contributed Notes hash_copy - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites