CryptoSys Encode software CryptoSys Encode

Use the CryptoSys Encode functions to encode binary data into base64 encoded strings. This utility is extremely fast, able to encode or decode millions of characters per second (8 Megabytes per second on a 1 GHz PIII machine). It also converts binary strings into hexadecimal strings and vice versa. There is a CRC-32 checksum utility, too.

Examples | Function List | Manual | Download

Stop Press 26 July 2006: This product is now provided free of charge. See the download details below.

There are functions in CryptoSys Encode for both Visual Basic users and C/C++ programmers (new in version 2). The VB functions automatically allocate the required memory for the String and Arrays used.

Examples

    Dim sInput As String
    Dim sOutput As String
    
    ' Put some binary data in a string
    ' this creates the 8-byte string 0xFEDCBA9876543210
    sInput = Chr(&HFE) & Chr(&HDC) & Chr(&HBA) & Chr(&H98) & _
    	Chr(&H76) & Chr(&H54) & Chr(&H32) & Chr(&H10)
    sOutput = B64_Encode(sInput)
    
    Debug.Print sOutput
This should result in output as follows:
/ty6mHZUMhA=
We can use a CryptoSys Encode HEX conversion function to create the binary data
    Dim sInput As String
    Dim sOutput As String
    
    sInput = HEX_Decode("FEDCBA9876543210")
    sOutput = B64_Encode(sInput)
    
    Debug.Print sOutput
And do some decoding back from base64 to a string of binary values
    Dim sInput As String
    Dim sOutput As String
    
    ' Get a base64 string
    sInput = "/ty6mHZUMhA="
    sOutput = B64_Decode(sInput)
    
    Debug.Print HEX_Encode(soutput)
This will produce the output of binary characters in hex
FEDCBA9876543210
To use the CRC-32 checksum function
    Dim sInput As String
    Dim sOutput As String
    
    sInput = "123456789"
    sOutput = HEX_CRC32(sInput)
    Debug.Print sOutput
that should produce the result
CBF43926

Obviously these trivial examples are just meant to show the basic mechanics of the functions involved. They'll be useful to you if you have bulk encoding to do - strings in Visual Basic can be up to 2 billion characters long. See the manual for more detailed examples.

Encode and Decode functions available in CryptoSys Encode

Base64

Hexadecimal

CRC-32 checksum

Manual

Read the latest version of the full manual in html format.

Download

As of 26 July 2006, CryptoSys Encode is available free of charge. You can download the latest version here. The latest version of the licenced product is release 2.0.1.0. There is no support provided for this free product.

This page last updated: 26 July 2006

 


Home | Blowfish | Rijndael AES | DES | Triple DES | SHA-1 | SHA-256 | Random numbers | CryptoSys Manual | Purchase | Cryptography Software Code | Contact us
Copyright © 2002-3 D.I. Management Services Pty Limited ABN 78 083 210 584, Sydney, Australia. All rights reserved.
<www.di-mgt.com.au>   <www.cryptosys.net>