a file encryption tool using vigener cipher.
how to compile for linux:
gcc incrypt.c -o incrypt
gcc dicrypt.c -o dicrypt
how to use the tool:
to encrypt file to a new file:
incrypt SRC DEST PASS
dicrypt SRC DEST PASS
to encrypt the file itself:
incrypt FILE PASS
dicrypt FILE PASS
to encrypt the buffer:
incrypt PASS
dicrypt PASS
- password's size can have any length between 1 byte and file size.
- the algorithm is very fast.
- you can use the decryption algorithm as encryption algorithm.
- the algorithm support both ASCII and UTF8 and can support other codes.
- if the password's size was bigger than the file itself, the extra bytes will be useless.
- using repeated passwords like "abcabc" is just like using "abc". but this doesn't apply on passwords like "abc0abc".
- in case of the cracker knows the content of the begining of the file, he maybe able to use it to get the entire password if the part's size was bigger than password's size.
- even if the known part's size was small, knowing the password's size can let the cracker get parts of the original file.