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
|
|
Binary to Hex Converter
Binary to hex converter in ASP. This script converts a binary byte array to a hex string. <html>
<body>
<%
set crypt = Server.CreateObject("Chilkat.Crypt2")
crypt.UnlockComponent "anything"
crypt.CryptAlgorithm = "none"
' Encode the output in a hexidecimal string.
crypt.EncodingMode = "hex"
' Create a byte array containing 10 bytes.
dim bData(9)
for i = 0 to 9
bData(i) = CByte(i)
next
' EncryptBytesENC accepts a byte array and returns an encoded string.
hexStr = crypt.EncryptBytesENC(bData)
Response.Write "<p>" + hexStr + "</p>"
%>
</body>
</html>
|
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.