TCryptFile
Дата: 14.04.2012 | Комментариев: 0 | Просмотров: 3116
Is a simple and very fast Encrypt/Decrypt component workingon registers with a 64 bits key.
It looks like very much TFileCopy, (another component by me for
files copy) since it manages binary files the same way.
Just on buffering data it performs encrypting &/or decrypting.
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, but there are two keys to use to build an
application, one for the developer and one for the end-user.
So, also having 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 any application can be different in order
of a 32 bit range.
FKey is the 4 chars user's password encoded by FIntKey so,
finally you have a 64 bits encoding.
FKey is put at the beginning of the encoded file so it encreases
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 developers 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
at run-time in your application)
Tag : ...
Note : TCryptFile allows InFile = OutFile, but it should be better
if your application raise a warning to the user before proceed
do not loose data in InFile by forgetting the password
Methods
Encrypt : starts encoding
Decrypt : starts decoding
Все используемые на сайте статьи, файлы и логотипы компаний принадлежат их законным владельцам. Если вы являетесь правообладателем "TCryptFile" и не желаете, чтобы ваша информация находилась на нашем сайте, напишите нам и эта информация будет удалена.
Категория: Delphi » Delphi-компоненты
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.