Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 1.16 KB

README.md

File metadata and controls

35 lines (19 loc) · 1.16 KB

MicryptCS

Command-line tool written in C# to encrypt a file with a password. The encryption used is AES-256-CBC with a HMAC-SHA-256 to enforce integrity and authentication.

Generally a ciphermode like GCM is preferred over CBC + HMAC, but C# doesn't support GCM by default. There is a library(BouncyCastle) available that supports GCM as ciphermode, but documentation is basically non-existent.

Warning!

Use this tool and/or code at your own risk. This tool was developed as a project to gain more knowledge about basic cryptography, and certainly not as tool to be used in production.

Usage

  1. MicryptCS [filePath]. Example: MicryptCS C:/MyUsername/MyImportantFiles
  2. Choose a command by entering a valid number.
  3. Enter a password to encrypt/decrypt the files with.

ScreenShots

  1. Starting Micrypt and supplying a file path

Starting Micrypt and supplying a file path

  1. Choosing the encryption command and entering a password

Choosing the encryption command and entering a password

  1. Result of the encryption

Result of the encryption