[ create a new paste ] login | about

Link: http://codepad.org/LhTotSth    [ raw code | output | fork ]

sequoia - PHP, pasted on Jul 31:
1
2
3
4
5
6
7
8
9
<?php
$string = "The quick brown fox jumped over the lazy dog.";
foreach(hash_algos() as $k => $algo){
  print str_pad($k, 2, " ", STR_PAD_LEFT)  . ". " . $algo;
  print function_exists($algo) ? "***" :"";
  print "\n     \-----------> " . hash($algo, $string) . "\n";
}
print "\n\n***has own function";
?>


Output:
 0. md2
     \-----------> 1072638ba8fc6f2ff06c251b62f426fd
 1. md4
     \-----------> a1e0224d596927a56c8bae416b2ef23e
 2. md5***
     \-----------> 5c6ffbdd40d9556b73a21e63c3e0e904
 3. sha1***
     \-----------> c0854fb9fb03c41cce3802cb0d220529e6eef94e
 4. sha256
     \-----------> 68b1282b91de2c054c36629cb8dd447f12f096d3e3c587978dc2248444633483
 5. sha384
     \-----------> b7273c05ad141ccb6696b3659e57137c453b6d64690fa7d5cf96368df4a7138703a8c6ead31727b487b3628746510391
 6. sha512
     \-----------> 0a8c150176c2ba391d7f1670ef4955cd99d3c3ec8cf06198cec30d436f2ac0c9b64229b5a54bdbd5563160503ce992a74be528761da9d0c48b7c74627302eb25
 7. ripemd128
     \-----------> 077a3fd0a18a01cb23c3e1bede846f99
 8. ripemd160
     \-----------> ec457d0a974c48d5685a7efa03d137dc8bbde7e3
 9. ripemd256
     \-----------> 50c51844b845b31323765ae334349dd6a94db3e5b9624540bcbfa940f6857c3f
10. ripemd320
     \-----------> 67b248ca0b750028e76f09f5f9b9b746f04c228ce659f75393c83ee46b82dea011f15f465a7e4f71
11. whirlpool
     \-----------> 802dc377bf6dc4f905b90cf2f1ddb39d4958526c3772bce41c03488701630eeede851f5ddc195714ea9e35311a513e31c3b616ffce5756bd963e0fdc092b2f87
12. tiger128,3
     \-----------> 9370512795923aaeeb76fe3d8ea7433e
13. tiger160,3
     \-----------> 9370512795923aaeeb76fe3d8ea7433e0697d65d
14. tiger192,3
     \-----------> 9370512795923aaeeb76fe3d8ea7433e0697d65d1d6b3975
15. tiger128,4
     \-----------> 623163ed5f7b8e35ca1c2c1beb083289
16. tiger160,4
     \-----------> 623163ed5f7b8e35ca1c2c1beb0832891ab00cc6
17. tiger192,4
     \-----------> 623163ed5f7b8e35ca1c2c1beb0832891ab00cc615ef6e6b
18. snefru
     \-----------> 1d4ca34cc860789a2a63fab87cd6a2c3ae5ecb1df8bd3cce605ffa2de1fbd73b
19. gost
     \-----------> c10eb0cb71a04377a0452a4aa64853996f73cac95f6ae434df8083d473fac944
20. adler32
     \-----------> 5e10f17b
21. crc32***
     \-----------> 413a86af
22. crc32b
     \-----------> 4246a382
23. haval128,3
     \-----------> aa517f0b69b75146a39384ec92a02877
24. haval160,3
     \-----------> d9f46869ef2bf66602a0725c079d35a9f3ac6dd0
25. haval192,3
     \-----------> 04934beab28037aae8fd658389626368530562b96c9aba89
26. haval224,3
     \-----------> 41c959f1e44e931b0473c54c49080d74d49a96ea56e766af408a85fd
27. haval256,3
     \-----------> 6c7c17d5784428d4d62b7f652223d64a30c78aa5f2c2c71ce780ec3f0d0ec28d
28. haval128,4
     \-----------> 31147399766a068d0417390a4b9fa0c8
29. haval160,4
     \-----------> ad9aa7904f202cdfb1faf7d385d10e3de575f74c
30. haval192,4
     \-----------> 1568ff7e99ca98fbeb9a2d4c0318dcc290d0eb10d064d0f6
31. haval224,4
     \-----------> 94656ade22076dd122714b4168a2ed8228b554f70eca5728c5038579
32. haval256,4
     \-----------> 404e1584994409ee38e0829099521168ba7c3aa1b0e82d1a72ec387fd1317ecf
33. haval128,5
     \-----------> bc0db0f23eabcd9d0c4d0a2e498b8c47
34. haval160,5
     \-----------> 51341aa150d38695628491580d8d6dc9850201f7
35. haval192,5
     \-----------> da27cf4bdb2decd4731c69a017534535eecd6d9b9015fc41
36. haval224,5
     \-----------> f8a5d442ef5b82e062599fe38ddbf46999b29f0a15caa8bebabbff68
37. haval256,5
     \-----------> 16e1688c75cf09338fce299455ec0f6f783ca1cbb2006203ae6ae98b23f9294a


***has own function


Create a new paste based on this one


Comments: