Multiple keys for multiple files packed into one large file.
Given a key, you can extract the corresponding file.
At the same time, you can generate multiple partly true and partly false key sequences. In this way, you can safely hide the files you want to hide under duress.
Even if know one
In the encoding process, each
As you can see, these requirements are very demanding. So it is recommended to use the program to generate key sequences.
The
When
The maximum minimum cycle length of the subscript sequence is
One of the files is known, but the number of files, any keys or its length are not known. In this case, the time complexity required to crack the key corresponding to this file by means of brute-force attacking is
int encrypt(int n, int kn, char **ks, char **fs, const char *big = "big.bin");
Name | Type | Explain |
---|---|---|
n |
int |
the number of files (and keys) |
ks |
int |
key length |
fs |
char ** |
small file path |
big |
const char * |
large file (generation) path |
return | int |
0 is the normal return |
Save the keys and generate the large file.
int decrypt(const char *fk, const char *big, const char *fx);
Name | Type | Explain |
---|---|---|
fk |
const char * |
key file path |
big |
const char * |
large file path |
fx |
const char * |
corresponding small file (generation) path |
return | int |
0 is the normal return |
Decrypt the corresponding small file.