Test Encryption and hashing s2 Encryption t2s microtime string2 This i

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
//Test 2 - Encryption and hashing
$s2 = "Encryption";
$t2s = microtime();
$string2 = "This is a test string to see how fast your web server can process PHP functions";
for($i=0; $i < 150; $i++) {
$md5 = md5($string2);
$sha1 = sha1($md5);
$crc32 = crc32($sha1);
$cryptDate = crypt($crc32);
}
$t2 = stopWatch($t2s, microtime());