TCryptFile



 
 

TCryptFile : Delphi 16 - 32 

Is a simple and very fast Encrypt/Decrypt component working
on registers with a 64 bits key.
It looks like TFileCopy very much, (another component by me for
files copy) since it manages binary files as well.
It performs encrypting &/or decrypting just on buffering data
and because of binary management, it allows encoding on any kind of
files.
The encoding algorithm is very easy and you can understand it just
reading sources and there are two keys to be used to build an
application, one for the developer and one for the end-user.
So, notwithstanding the sources, it will be difficult (sure, not
impossible ... but that's normal with warez people ...) to
crack the machine.
FIntKey is the key that developers can set at design time by
object inspector so that any applications can be different in a 32 bits range.
FKey is the 4 chars user's password encoded by FIntKey,
finally obtaining a 64 bits encoding.
FKey is located at the beginning of the encoded file increasing
it's length by 4 bytes and the decrypt method performs a check
with user's password and the one stored on data. 

Properties
---------- 

InFile   : full path-name of the source file to encrypt/decrypt
IntKey   : Internal developer key
Name     : ...
OutFile  : full path-name of the target file to store the result
           of encrypt/decrypt operation
Password : end-user 4 chars password (it should be better to set it
           in your application at run-time)
Tag      : ... 

Note : TCryptFile allows InFile = OutFile, but it should be better
       to raise a warning to the user in your application before proceeding
       in order not loose data in InFile because the password has been forgotten.
___________________________________________________________________ 

Methods
------- 

Encrypt : starts encoding
Decrypt : starts decoding 

___________________________________________________________________ 

WARNINGS : In order with U.S.A. laws on encryptions, if you want
to build or distribute your applications in that country you MUST
guarantee a 'back door' for F.B.I.
Anyway I discharge any responsibility for impropers uses of TCryptFile,
that's a problem of you. 

Have a nice time and if you like my job or you have something to
suggest send me an e-mail

 

 back to download