Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
|
|
Base64 to Hex Conversion
ASP Script to convert Base64 to Hexidecimal. <html>
<body>
<%
set crypt = CreateObject("Chilkat.Crypt2")
unlocked = crypt.UnlockComponent("Anything for 30-day trial")
crypt.CryptAlgorithm = "none"
crypt.EncodingMode = "base64"
base64Str = "dIDJu7fzCnwVpOX9yfXsPg=="
decoded = crypt.DecryptBytesEnc(base64Str)
' Now encode as a hex string.
crypt.EncodingMode = "hex"
hexStr = crypt.EncryptBytesEnc(decoded)
Response.Write "<p>Base64: " + base64Str + "</p>"
Response.Write "<p>Hex: " + hexStr + "</p>"
%>
</body>
</html>
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.