Skip to content

Small C# console application that allows the encryption of files with AES using a password

Notifications You must be signed in to change notification settings

n1k0m0/FileCrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

FileCrypt

Small console application that allows the encryption of files with AES using a password. It uses the .NET crypto API.

This program is a small C# console application that allows the encryption and decryption of a file using AES. It furthermore computes an HMAC (with SHA512) which it adds to the "header" of the encrypted file, thus, the user is able to see if the encrypted file was manipulated by an attacker.

This program supports encryption:

FileCrypt encrypt InputFileName OutputFileName

This program supports decryption:

FileCrypt decrypt InputFileName OutputFileName

In both cases, the program asks the user for a password which is used to compute the AES key as well as the HMAC key. For both key generations, PBKDF2 (with SHA512) is used.

AES is used with 256 bit keys. The used mode of operation is CBC. The used padding is PKCS7. For IV and salt generation, the rng crypto service provider of .net is used.

This program is intended for educational purposes. Feel free to use, modify, and play with it :-)

About

Small C# console application that allows the encryption of files with AES using a password

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages