Java
Chilkat2 Java
Example: SecureString.HashVal method
Demonstrates theHashVal method.
Chilkat Java Downloads
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);
}
}