[fpc-pascal] encryption and decryption

Michael Van Canneyt michael at freepascal.org
Sat Jun 23 11:34:56 CEST 2012



On Fri, 22 Jun 2012, silvioprog wrote:

> 2012/6/22 Jorge Aldo G. de F. Junior <jagfj80 at gmail.com>:
>> Theres a blowfish encryption system in freepascal
>>
>> http://www.freepascal.org/docs-html/fcl/blowfish/index.html
>>
>> 2012/6/22 Rainer Stratmann <RainerStratmann at t-online.de>:
>>> Does someone know how to do encryption and decryption with keys?
>
> Hellow guys,
>
> How to use TBlowFishEnCryptStream? Is there any example for mortals? :)
>

The testbf.pp program in fcl-base/examples shows how to use it.

It's very simple, really. Just create an encryption stream, and 
write the data you want to see encrypted to this stream.
The output of the stream is the encrypted data.

Michael.



More information about the fpc-pascal mailing list