|
1 | 1 | # SHA and Shake for scala
|
2 | 2 |
|
3 |
| -This is Secure Hash Algorithms family which is implemented for scala, scala-js and scala-native, |
4 |
| -without any dependencies. |
| 3 | +This is Secure Hash Algorithms family which is implemented for scala, scala-js |
| 4 | +and scala-native, without any dependencies. |
5 | 5 |
|
6 |
| -This code base implements SHA-0, SHA-1, SHA-2 and SHA-3. Keep in mind that SHA-0 is broken |
7 |
| -and I've implemented it just for fun :) |
| 6 | +This code base implements SHA-0, SHA-1, SHA-2 and SHA-3. Keep in mind that SHA-0 |
| 7 | +is broken and I've implemented it just for fun :) |
8 | 8 |
|
9 |
| -This code wasn't designed to be as fast as possible. I tried my best to make implementation fast when I did it, |
10 |
| -but I haven't done any benchmarks yet. Will I make it one day faster or oriented to huge chunks? Probably. |
| 9 | +This code wasn't designed to be as fast as possible. I tried my best to make |
| 10 | +implementation fast when I did it, but I haven't done any benchmarks yet. Will I |
| 11 | +make it one day faster or oriented to huge chunks? Probably. |
11 | 12 |
|
12 |
| -The propose of this code to be fast enough to hash something up to a few megabytes at the worst case |
13 |
| -and at few kilobytes as usual case. Where? At any scala-based application where hashing isn't the bottleneck. |
| 13 | +The propose of this code to be fast enough to hash something up to a few |
| 14 | +megabytes at the worst case and at few kilobytes as usual case. Where? At any |
| 15 | +scala-based application where hashing isn't the bottleneck. |
14 | 16 |
|
15 |
| -This assumption also included inside API: it consumes whole provided array, it allocates and copies a lot. |
| 17 | +This assumption also included inside API: it consumes whole provided array, it |
| 18 | +allocates and copies a lot. |
16 | 19 |
|
17 |
| -If you need fast and secure hash function for scala I suggest to use [blak3](https://github.com/catap/scala-blake3). |
| 20 | +If you need fast and secure hash function for scala I suggest to use |
| 21 | +[blake3](https://github.com/catap/scala-blake3). |
18 | 22 |
|
19 | 23 | You can use it as
|
20 | 24 | ```
|
|
0 commit comments