Skip to content

Latest commit

 

History

History
119 lines (65 loc) · 1.89 KB

File metadata and controls

119 lines (65 loc) · 1.89 KB

OneFileEncryptDecrypt

One file encrypt decrypt in my machine.

Protect my important file.

Build Require

.NET 10

Optional, Code edit

VisualStudio 2026

OR

VisualStudio Code with C# Extension

Build

1. Clone this repository.

2. Build, Select one under 2-1 or 2-2

2-1. VisualStudio

  • Open solution
  • Build

2-2. Command Line

  • Move clone directory
dotnet build
dotnet build -c Release

3. Move Binary Directory

SOLUTION_DIRECTORY > OneFileEncryptDecrypt > bin > Debug

OR

SOLUTION_DIRECTORY > OneFileEncryptDecrypt > bin > Release

4. Install

Install is very simple.

Just copy binary directory all files want directory. 😁

5. Execute

OneFileEncryptDecrypt.exe

Using

Encrypt

  • Encrypt file
OneFileEncryptDecrypt encrypt -p <PASSWORD> -f <ENCRYPT_FILE_PATH>
OneFileEncryptDecrypt encrypt --password <PASSWORD> --file <ENCRYPT_FILE_PATH>
  • Encrypt file with encrypt mode
OneFileEncryptDecrypt encrypt -p <PASSWORD> -f <ENCRYPT_FILE_PATH> -m <ENCRYPT_MODE>
OneFileEncryptDecrypt encrypt --password <PASSWORD> --file <ENCRYPT_FILE_PATH> --mode <ENCRYPT_MODE>

Decrypt

  • Decrypt file
OneFileEncryptDecrypt decrypt -p <PASSWORD> -f <ENCRYPT_FILE_PATH>
OneFileEncryptDecrypt decrypt --password <PASSWORD> --file <ENCRYPT_FILE_PATH>

Network

Encrypted file send/share to another machine is not recommended.

First concept is MY MACHINE in file encrypt and decrypt.

If you know encrypted file send/share network risk.

Please MY ANOTHER MACHINE or TRUST MACHINE.

UI

Please check this repository.

Change Log

2026-05-30

Add new encrypt mode. AES256 GCM.

2026-01-23

Delete system salt.

Every encrypt time create new salt use.

And salt is include encrypt result file.