Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP sha1 — Calculate the sha1 hash of a string

<?php
$str = 'apple';

if (sha1($str) === 'd0be2dc421be4fcd0172e5afceea3970e2f3d940') {
    echo "Would you like a green or red apple?";
}
?>
 
PREVIOUS NEXT
Tagged: #PHP #Calculate #hash #string
ADD COMMENT
Topic
Name
4+9 =