Giter Club home page Giter Club logo

anyfile2bmp's Introduction

anyfile2bmp

anyfile2bmp is a program to encrypt or decipher files with .bmp format.

anyfile2bmp [OPTION] [SRCFNAME] [DESFNAME] [KEYWORD]

[Option]

anyfile2bmp has 4 options. Actually, 'Option' is NOT optional. It decides what program will do.

  • --help, -h : shows help message
  • --version : shows program version
  • --encrypt, -e : encrypt [SRCFNAME] to [DESFNAME] with [KEYWORD]
  • --decipher, -d : decipher [SRCNAME] to [DESFNAME] with [KEYWORD]

For example, if you want to encrypt 'Secret.txt' with keyword 'MyPassword', Run this:

anyfile2bmp --encrypt Secret.txt NothingInHere.bmp MyPassword

Then 'NothingInHere.bmp' will be created, it contains encrypted informations of 'Secret.txt'. To decipher,

anyfile2bmp --decipher NothingInHere.bmp Original.txt 'MyPassword'

And Original.txt will created, it is the same one with 'Secret.txt' but more bigger.

To use this program

  1. Compile the source code - anyfile2bmp.c

  2. (In Windows) Open CMD in the directory which has anyfile2bmp.exe

  3. In the terminal...

    anyfile2bmp [OPTION] [SRCFNAME] [DESFNAME] [KEYWORD]

Problems

I'm trying to solve problems below. If you have some idea to solve them, please notice me:)

The size of bmp file

When encrypt files, because .bmp is 24-bit based image format, Some images(which contains more than 256 infos) are can't be shown.

Increasing data size

Image file has pixel size. So, when you encrypt and decipher same files again, the result of decipher might be bigger than original one. It contains many '\0' at the end.

Weakness

The keyword can be found when someone knows original file format. anyfile2bmp uses Vigenere Cipher so with original format, part of keyword can be leaked.

anyfile2bmp's People

Contributors

talkwarrior avatar

Watchers

 avatar

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.