Skip to content

Simple hashing | Hash Sources

Black_Baroness edited this page Sep 1, 2022 · 1 revision

Creating a HashSource is very easy. We can use a factory, instance initialization, or just implement our own class. But factory is easiest:

// for string
HashSources.ofString("qwerty");

// for file
HashSources.ofFile(new File("hello world.txt"));

///...there are many more options

That's it, we're ready to hash!

Clone this wiki locally