File tree 2 files changed +28
-2
lines changed
2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ language: php
2
2
3
3
php :
4
4
- 7.1
5
+ - 7.2
5
6
- nightly
6
7
7
8
install :
Original file line number Diff line number Diff line change 1
- # php-keccak
2
- Keccak
1
+ # php-keccak [ ![ Build Status] ( https://travis-ci.org/kornrunner/php-keccak.svg?branch=master )] ( https://travis-ci.org/kornrunner/php-keccak ) [ ![ Coverage Status] ( https://coveralls.io/repos/github/kornrunner/php-keccak/badge.svg?branch=master )] ( https://coveralls.io/github/kornrunner/php-keccak?branch=master )
2
+ Pure PHP implementation of Keccak (SHA-3)
3
+
4
+ ## Usage
5
+
6
+ ``` php
7
+ <?php
8
+
9
+ use kornrunner\Keccak;
10
+
11
+ Keccak::hash('', 224);
12
+ // f71837502ba8e10837bdd8d365adb85591895602fc552b48b7390abd
13
+
14
+ Keccak::hash('', 256);
15
+ // c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470
16
+
17
+ Keccak::hash('', 384);
18
+ // 2c23146a63a29acf99e73b88f8c24eaa7dc60aa771780ccc006afbfa8fe2479b2dd2b21362337441ac12b515911957ff
19
+
20
+ Keccak::hash('', 512);
21
+ // 0eab42de4c3ceb9235fc91acffe746b29c29a8c366b7c60e4e67c466f36a4304c00fa9caf9d87976ba469bcbe06713b435f091ef2769fb160cdab33d3670680e
22
+
23
+ Keccak::shake('', 128, 256);
24
+ // 7f9c2ba4e88f827d616045507605853ed73b8093f6efbc88eb1a6eacfa66ef26
25
+
26
+ Keccak::shake('', 256, 512);
27
+ // 46b9dd2b0ba88d13233b3feb743eeb243fcd52ea62b81b82b50c27646ed5762fd75dc4ddd8c0f200cb05019d67b592f6fc821c49479ab48640292eacb3b7c4be
You can’t perform that action at this time.
0 commit comments