You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+17-6
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,8 @@
1
1
2
2
# php-crypto library
3
3
4
-
A Pure PHP (without any external PHP-extension) Implementation of BLAKE-256, GROESTL-256, JH-256, SKEIN-256 and KECCAK-256 hashing (cryptography) algorithms.
4
+
A **Pure** PHP (without any external PHP-extension) Implementation of **BLAKE-256, GROESTL-256, JH-256, SKEIN-256 and KECCAK-256** hashing (cryptography) algorithms.
5
+
**shift-reality/php-crypto is licensed under the Apache License 2.0.**
5
6
6
7
**Installation (composer):**
7
8
@@ -17,22 +18,32 @@ A Pure PHP (without any external PHP-extension) Implementation of BLAKE-256, GRO
17
18
18
19
0. Register default algo:
19
20
20
-
`Hasher::regBuiltinAlgos();`
21
+
`\Shift196\AKashLib\Hasher::regBuiltinAlgos();`
21
22
22
23
1. Register own hash function(algo):
23
24
24
-
`Hasher::registerAlgo('MYHASH', new MyHashImpl());`
25
+
`\Shift196\AKashLib\Hasher::registerAlgo('MYHASH', new MyHashImpl());`
25
26
26
-
`MyHashImpl` should implement `IHashFunction` interface.
27
+
`MyHashImpl` should implement `\Shift196\AKashLib\IHashFunction` interface.
27
28
28
29
2. Make hash of hex-encoded data:
29
30
30
31
`$algo = 'BLAKE256 or GROESTL256 or JH256 or SKEIN256 or KECCAK256';`
0 commit comments