Classic ASP
Classic ASP
Example: Crypt2.CrcBd method
Demonstrates how to call the CrcBd method.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set crypt = Server.CreateObject("Chilkat.Crypt2")
set bd = Server.CreateObject("Chilkat.BinData")
success = bd.AppendString("123456789","us-ascii")
crc32 = crypt.CrcBd("crc-32",bd)
' The decimal value is 3421780262 (converted to hex is 0xCBF43926)
Response.Write "<pre>" & Server.HTMLEncode( crc32) & "</pre>"
crc8 = crypt.CrcBd("crc8",bd)
Response.Write "<pre>" & Server.HTMLEncode( crc8) & "</pre>"
%>
</body>
</html>