Sample code for 30+ languages & platforms
Java

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Java Downloads

Chilkat2 Java
import com.chilkatsoft.chilkat2.SecureString;

public class ChilkatExample {

    public static void main(String[] args) {
        SecureString str = new SecureString();
        str.setMaintainHash("sha256");
        str.append("Hello World");

        String encodedHash = str.hashVal("base64");
        System.out.println(encodedHash);
    }
}