Classic ASP
Classic ASP
Decode Base64
Demonstrates how to decode base64.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set bd = Server.CreateObject("Chilkat.BinData")
' Append a base64 string to bd.
success = bd.AppendEncoded("c2VjcmV0","base64")
' The bd now contains the decoded bytes.
' Let's say it was a password string..
password = bd.GetString("utf-8")
' Decodes to "secret".
Response.Write "<pre>" & Server.HTMLEncode( "password = " & password) & "</pre>"
%>
</body>
</html>