search
Homephp教程php手册计算文本的各种Hash加密,超级全面

计算文本的各种Hash加密,超级全面

Jun 06, 2016 pm 07:39 PM
demohashcomprehensiveencryptiontextDemocalculate

DEMO演示:http://dighash.com/ 全站代码:https://github.com/hustcc/dig_hash,求star hash算法包括:md2,md4,md5,sha1,sha224,sha256,sha384,sha512,ripemd128,ripemd160,ripemd256,ripemd320,whirlpool,tiger128_3,tiger160_3,tiger192_3,tiger128_4,tig

DEMO演示:http://dighash.com/

全站代码:https://github.com/hustcc/dig_hash ,求star

hash算法 包括: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

看晕了吧,直接看上面的demo网址吧!

function cal_hash($chars) {
    $algos = hash_algos();
    $hash_rst = array();
    foreach($algos as $algo) {
        $st = microtime();
        $rst = hash($algo, $chars, false);
        $et = microtime();
        list($ss, $si) = explode(' ', $st);
        list($es, $ei) = explode(' ', $et);
        $hash_rst[str_replace(",", "_", $algo)] = array('rst' => $rst, 'time' => $ei + $es - $si - $ss);
    }
    return $hash_rst;
}

计算文本的各种Hash加密,超级全面

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.