Home > Net >  Do you want to be the recent folder encryption, there was a problem
Do you want to be the recent folder encryption, there was a problem

Time:09-25

I am to compress the folder into package and encryption, the encryption function is to 64 - bit data encryption,
Now think of encryption strategy is:
1. Read data in 64 - bit encryption and all data is encrypted files side
2. To encrypt only head 64 - bit data
Two strategies are the result is bad:
The first kind of encryption cost time
The second I don't try to extract by decrypting it after encryption, found only folder only the first file is encrypted, the rest can be view or normal use
Excuse me what should I do?

CodePudding user response:

Mainstream compression tools support encryption, free is very much also,
If you want to try, can wait six months for one year, technology level, deepened understanding of cryptography, back to do,

CodePudding user response:

DLL NuGet a Zip, and we have ready-made methods,
Want to go to the source code to write their own

CodePudding user response:

First 64 - bit this is too little, wastes the IO read, you know, the hard disk read below 4 k length data, is very waste performance
Then, write their own encryption algorithm, the performance must be bad, because now the mainstream of library, is done with CPU hardware instruction (such as aes instructions), you several orders of magnitude slower in c #,

CodePudding user response:

The
refer to the original poster define me? Response:
I is to compress the folder into a compressed packet encryption, the encryption function is to 64 - bit data encryption,
Now think of encryption strategy is:
1. Read data in 64 - bit encryption and all data is encrypted files side
2. To encrypt only head 64 - bit data
Two strategies are the result is bad:
The first kind of encryption cost time
The second I don't try to extract by decrypting it after encryption, found only folder only the first file is encrypted, the rest can be view or normal use
Excuse me what should I do?


Folder encryption, there is a purpose: cannot read correctly this folder and file folder, there is a kind of encryption technology against copy (condition) on the document, but not cross-platform;
The idea is right, the mainstream PC support 64 - bit Cpu, to 64 - bit data from flow is the fastest
  •  Tags:  
  • C#
  • Related