sha1
description
Calculates the sha1 hash of $str using the « US Secure Hash Algorithm 1 ».
Berechnet den SHA1 Hash von $str unter Verwendung des « US Secure Hash Algorithmus 1 » und gibt den Hashwert zurück. Der Hash ist ein 40 Zeichen langer Hexadezimalwert. Ist der optionale Parameter $raw_output TRUE, wird der SHA1-Extrakt im Raw-Binary-Format mit einer Länge von 20 Zeichen zurückgegeben.
Calcula el resumen criptográfico sha1 de cadena usando el « Algoritmo de Hash Seguro US 1 ».
Calcule le sha1 de la chaîne de caractères $str en utilisant « US Secure Hash Algorithm 1 ».
Calcula a hash sha1 de $str usando « US Secure Hash Algorithm 1 », e retorna esta hash. A hash é um número hexadecimal de 40 caracteres. Se o parâmetro opcional $raw_output for TRUE, então o resultado é retornado em um formato binário com o tamanho de 20.
function call
string sha1( string $str )
test sha1 online
comments for sha1
On 09. Sep 2009 19:19 johnnyLennon wrote:
thanks a lot. I'm a develover, so I implemented this function to validate the passwd's in my site. Somebody deleted my principal User and I couldn't login again. I used this tool to view my pass translated into sha1 algorithm, so Thanks!!!
