之前学 PHP 做的一个小玩意——Dig Hash

2015-12-04 13:11:02 +08:00
 50vip

说明

使用 PHP 的 Slim 框架做的,计算一个字符串的各种不同 Hash 算法的值和长度,还付了一个随机颜色。

做完之后,我真的觉得 PHP 是全宇宙最好的语言,没有之一。

算法主要包括:

md2,md4,md5, sha1,sha224,sha256,sha384,sha512, ripemd128,ripemd160,ripemd256, snefru,snefru256, gost,gost-crypto, adler32, crc32,crc32b, fnv132,fnv1a32,fnv164,fnv1a64, joaat, haval128-3,haval160-3,haval192-3,haval224-3,haval256-3,haval128-4,haval160-4,haval192-4,haval224-4,haval256-4,haval128-5,haval160-5,haval192-5,haval224-5,haval256-5

代码:https://github.com/hustcc/dig_hash

Demo: http://dighash.com/

下面是 github readme 文件:

dig hash

A hash algorithm set, write by PHP Slim framework. It an calculate the hash of any string. Also, we can see the length of hash code.

hash algorithm include:

md2,md4,md5,

 sha1,sha224,sha256,sha384,sha512,

 ripemd128,ripemd160,ripemd256,ripemd320,

 whirlpool,

 tiger128-3,tiger160-3,tiger192-3,tiger128-4,tiger160-4,tiger192-4,

 snefru,snefru256,

 gost,gost-crypto,

 adler32,

 crc32,crc32b,

 fnv132,fnv1a32,fnv164,fnv1a64,

 joaat,

 haval128-3,haval160-3,haval192-3,haval224-3,haval256-3,haval128-4,haval160-4,haval192-4,haval224-4,haval256-4,haval128-5,haval160-5,haval192-5,haval224-5,haval256-5

For fun, I set one color for every hash algorithm, then we can call it the color of hash

demo site

Preview: http://dighash.com

thanks to

use

other

welcome to push request or give a issue. https://github.com/hustcc/dig_hash.

2220 次点击
所在节点    程序员
2 条回复
oott123
2015-12-04 13:31:46 +08:00
好!
可是这特码有什么用……
50vip
2015-12-04 14:06:14 +08:00
@oott123 没有特码卵用,哈哈~

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/241112

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX