You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make the process of scrambling more elegant
+ increase the number of scrambling table from 16 to 256 while making
the process shorter
~fix typo and update readme
Copy file name to clipboardexpand all lines: README.md
+12-7
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,15 @@ Le mot de passe demandé au début est hashé puis sert de graine pour le PRNG(g
5
5
Le PRNG permet de fournir une clé unique égale à la longueur du fichier à coder.
6
6
La clé unique subit un xor avec le mot de passe (le mot de passe est répété autant de fois que nécéssaire).
7
7
Le fichier subit un xor avec cette clé Puis un brouilleur est utilisé, il mélange la table des caractères (ascii) en utilisant le PRNG et en utilisant le keyfile s'il est fourni.
8
-
16 tables de brouillages sont utilisées au total dans un ordre non prédictible.
8
+
256 tables de brouillages sont utilisées au total dans un ordre non prédictible.
9
9
10
10
Can crypt and decrypt any file given in argument.
11
11
The password asked is hashed to be used as a seed for the PRNG.
12
12
The PRNG gives a unique key which has the same length as the source file.
13
13
The key is xored with the password (the password is repeated as long as necessary).
14
14
The file is then xored with this new key, then a scrambler is used.
15
15
it scrambles the ascii table using the PRNG or the keyFile given.
16
+
256 scramble's tables are used in an unpredictible order.
you can put the compiled file "enigmax" in your path to use it everywhere
30
+
You can put the compiled file "enigmax" in your path to use it everywhere
30
31
```
31
32
export PATH="$PATH:/PATH/TO/enigmax"
32
33
```
33
-
write in your ~/.bashrc if you want it to stay after a reboot
34
+
Or you can make an alias
35
+
```
36
+
alias enigmax='PATH/TO/enigmax'
37
+
```
38
+
write one of them in your ~/.bashrc if you want it to stay after a reboot
34
39
35
40
## Usage :
36
41
@@ -53,7 +58,7 @@ write in your ~/.bashrc if you want it to stay after a reboot
53
58
*normalise the size of the keyFile, improving too short (less secure) or too long (take long time) keyFiles*
54
59
55
60
**-d (destroy):**
56
-
*delete the main file at the end of the process*
61
+
*delete the source file at the end of the process*
57
62
58
63
**KEYFILE:**
59
64
*path to the keyfile, generate the scrambler instead of the password.*
@@ -68,15 +73,15 @@ write in your ~/.bashrc if you want it to stay after a reboot
68
73
enigmax file1
69
74
```
70
75
71
-
lets you choose between crypting or decrypting then it will prompt for a password that crypt/decrypt file1 as file1x in the same folder, file1 is not modified.
76
+
lets you choose between crypting or decrypting then it will prompt for a password that crypt/decrypt file1 as xfile1 in the same folder, file1 is not modified.
72
77
73
78
**the command:**
74
79
75
80
```
76
81
enigmax file2 keyfile1
77
82
```
78
83
79
-
lets you choose between crypting or decrypting, will prompt for the password that crypt/decrypt file2, uses keyfile1 to generate the scrambler then crypt/decrypt file2 as file2x in the same folder, file2 is not modified.
84
+
lets you choose between crypting or decrypting, will prompt for the password that crypt/decrypt file2, uses keyfile1 to generate the scrambler then crypt/decrypt file2 as xfile2 in the same folder, file2 is not modified.
80
85
81
86
**the command:**
82
87
@@ -100,7 +105,7 @@ lets you choose between crypting or decrypting, uses keyfile2 to generate the sc
100
105
enigmax -dni file4 keyfile2
101
106
```
102
107
103
-
lets you choose between crypting or decrypting, will prompt for a password that crypt/decrypt the file but generates the substitution's tables with the keyfile passing only one cycle of the Fisher & Yates algorythm(option 'n'), inverts the scrambling phase with the xoring phase(option 'i') and destroy the main file afterwards(option 'd')
108
+
lets you choose between crypting or decrypting, will prompt for a password that crypt/decrypt the file but generates the substitution's tables with the keyfile passing only one cycle of the Fisher & Yates algorythm(option 'n'), inverts the scrambling phase with the xoring phase(option 'i') and destroy the source file afterwards(option 'd')
0 commit comments