Encoded Data Format


BCTextEncoder not only encrypts, but also compresses the data.

First, plain text data is compressed by ZLIB compression algorithm. The compressed data is encrypted by choosen public key or by password. At this step, BCTextEncoder utilizes RSA asymmetric algorithm for public key encryption and AES(Rijndael) algorithm with 256-bit key for password-based encryption. Finally, encrypted data is encoded by BASE64 encoding algorithm to text format.

The picture illustrates the process of data transformation:
 Image text  

Example:

The 'Hello, Word!' plain text encoded by password 'password' looks like:

-----BEGIN ENCODED MESSAGE-----
Version: BC Text Encoder Utility v. 1.00.0 (beta)

wy4ECQMC6J8Np1DDfutgzFNqgHsDsam9CbC/QJ3pg8oV7nFbbtQrfygrLRoh/y/10j0B
2hHwpqOX5ACgP4tgt/D9RQmOQSON92mSSvoMVEnm9yq/hIO/XJ0lIi+VsWNpaBBs
mVvhD6VocCAzWJiz
-----END ENCODED MESSAGE-----
 

So resulting text contains only valid characters and may be sent by e-Mail or saved as a text file.

NOTE: BCTextEncoder is compatible with well known PGP utility. It means that it can decode messages encoded by PGP .