Saph is the Stupid Algorithm for Password Hashing. This is the Java implementation.
For more information about Saph, go to its specification.
The class pet.orca.saph.Saph
contains the implementation. It may be used as follows:
Saph saph = new Saph();
saph.add("pepper");
saph.add("username");
saph.add("password");
byte[] hash = saph.hash();
The package is available in Maven Central and may be included as:
<dependencies>
...
<dependency>
<groupId>pet.orca</groupId>
<artifactId>saph</artifactId>
<version>1.0</version>
</dependency>
...
</dependencies>