This page shows how you can use CryptoSys API to create and decipher data encrypted using the MySecret version 3 format.
MySecret is a command-line freeware utility that can be used to encrypt and decrypt messages in an email-friendly manner. It works by encrypting or decrypting the contents of the clipboard and can also work in file-to-file mode.
MySecret uses the Blowfish algorithm to create base64-encoded text output that can be easily transmitted over the Internet or stored on any computer system. The full technical details are here.
Download a VB6/VBA project (zipped, 31 kB) that demonstrates the techniques. The main elements of the source code are in module basMySecret.bas. This requires the CryptoSys API library to be installed on your system and the latest version of the `basCryptoSys.bas' module to be included in your project. You can download a free trial version of CryptoSys API. Commercial use requires a licence.
From CryptoSys API:
BLF_BytesModeMD5_BytesHashZLIB_DeflateZLIB_InflateRNG_NonceDataCNV_B64StrFromBytesCNV_BytesFromB64StrWIPE_DataTo comment on this or ask questions, please contact us.
This page last updated 10 September 2025