Code Monkey home page Code Monkey logo

aescrypt's Introduction

AEScrypt

Cross platform command line tool to encrypt/decrypt files with AES (ECB or CBC).

Compile with "gcc aes.c sha256.c encrypt.c -Werror -Wall"

The tool can encrypt files and directories and take a user specified key or use the default. The initialization vector in CBC mode is stored with the key in a file. This file cannot be re-created as the IV is completely random, so don't lose this file if in CBC mode (default).

Credit to kokke's Tiny AES and B-con's crypto-algorithms.

NOTICE: This tool was created as a learning experience. While the algorithms used are standardized, it is still possible vulnerabilities remain in the program.

TODO List

  • Build and test on *nix environment
  • Add extension to encrypted files
  • Add key checksum to encrypted files
  • Implement different key sizes
  • Rewrite AES to have GPU support, side-channel resistance
  • Add other crypto options (twofish, RSA, one-time-pad, viginere?, 3DES?)

aescrypt's People

Contributors

jbheard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

aescrypt's Issues

Decryption results in "Invalid checksum, quitting"

Hi, this looks really interesting - nice job!

Unfortunately I'm getting "Invalid checksum, quitting" when trying to decrypt a file (on Windows 10 64-bit, compiled using gcc-8.3.0 for target: x86_64-w64-mingw32).

I'm not receiving any errors when compiling, just a few warnings about "traversing" - but I'm not using recursive encryption on directories, just single files.

It appears like the checksum being read for the key from the encrypted file isn't matching the one inputted, but I've tried commenting out that check and the decryption still doesn't seem to occur properly. Maybe you have an idea what's going on.

Thanks for looking into it!

Regards,

Steven

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.