项目作者: AlanReviews

项目描述 :
A simple file encryption program for txt files
高级语言: C
项目地址: git://github.com/AlanReviews/File-Encryption.git
创建时间: 2020-01-04T17:49:27Z
项目社区:https://github.com/AlanReviews/File-Encryption

开源协议:

下载


File-Encryption

Disclaimer: This program is not to be used for any real encryption and protection of files. The encryption performed is a byte-for-byte XOR using the same byte (the key is a single byte long). This scrambling is trivial to crack. It can possibly be seen as a simplified example of a Caesar cipher

This is a simple file encryption program I made with C on Linux. It is very easy to port it to Windows and Mac. I tested the program using Ubuntu 18.04.

Steps

  1. Compile the fileEncryption.c by calling gcc -o fileEncryption fileEncryption.c
  2. Compile the fileDecryption.c by calling gcc -o fileDecryption fileDecryption.c
  3. Run fileEncryption by calling ./fileEncryption [key] [filename]
  4. Run fileDecryption by calling ./fileDecryption [key] [filename]
  5. Compare the original and the decrypted by calling diff [original_file] results.txt