File Crypter


Source Code (C#)


File Crypter is a file encryption/decryption application, it handles both text and binary files, and features a key generator, its primary purpose is to offer an additional level of security when moving files around on the internet, or securely encrypting files without having to rely on commercial third party software, its also a nice way to get around gmail’s and many other email services refusal to allow you to email executables.

It should be noted that although the files are encrypted using 256 bit Rijndael, the keys (or pass phrases) generated by the application are fairly weak, though the code exist in the application to used the encryption libraries native key generator, its currently commented out, and produces something a bit more human readable. The source is available to any that would care to make the change.

Screen Shot(s):

Notable Code:

Below is listed both the methods used to create the keys for the application, (this points out the flaws, the padding for example being a ‘ ‘ series of white spaces, thoughts on improving this, would be to takes the key phrase passed by the user, turning that into an int, and using that as a random seed to generate a repeatable, but seemingly random string to pad with.

The other code listed is a method of writing the data to a file, and a common example I found that isn’t binary safe, and should be avoided (regardless if published on the MSDN)