Sample code for 30+ languages & platforms
Classic ASP

Example: SecureString.HashVal method

Demonstrates the HashVal method.

Chilkat Classic ASP Downloads

Classic ASP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0

set str = Server.CreateObject("Chilkat.SecureString")
str.MaintainHash = "sha256"
success = str.Append("Hello World")

encodedHash = str.HashVal("base64")
Response.Write "<pre>" & Server.HTMLEncode( encodedHash) & "</pre>"

%>
</body>
</html>