-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
BLAKE3 in Java | ||
--- | ||
A completely unoptimized translation of the blake3 reference implementation from rust to java. | ||
Useful for if you want a single file implementation of blake3 with no dependencies and don't care about speed. | ||
|
||
If what you are java bindings for blake3 that are fully optimized try: https://github.com/sken77/BLAKE3jni | ||
```java | ||
// Hashing strings | ||
Blake3 hasher = new Blake3(); | ||
hasher.update("This is a string"); | ||
String hexhash = hasher.hexdigest(); | ||
``` | ||
```java | ||
// Hashing files | ||
String filename = "src/com/github/rctcwyvrn/blake3java/Blake3.java"; | ||
Blake3 fileHasher = new Blake3(); | ||
fileHasher.updateFile(filename); | ||
String filehash = fileHasher.hexdigest(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters