/encryption-app

Simple encryption app written in Java and JavaFX, uses AES encryption.

Primary LanguageJavaMIT LicenseMIT

Encryption App

Simple encryption app written in Java and JavaFX, uses AES encryption.

Getting Started

  • To clone this project to yor local environment you simple type in command line:
git clone https://github.com/tomaszkyc/encryption-app.git
  • To build this project you will need Ant tool ( I was using the existing one in Eclipse)

Prerequisites

What things you need to install the software and how to install them

Installing

  1. Download the setup file from here

  2. Run the setup as below:

Setup gif

  1. When setup is done - the app will open automatically:

Main window of app

How it works

The application uses AES encryption to decrypt and encrypt files you will choose.

To encrypt file

Let's say we have a text file called secret.txt with content:

secret message
  1. Open app, make sure te "Encrypt" type is choosen.

  2. Select file by clicking "Choose file" button:
    Clicking the choose file button

  3. After that click in button "Generate random password" or enter your own password in password field. Notice that AES password have to be: 16, 24 or 32 characters long. After clicking the button you will have two options:

    • Copy generated password to clipboard
    • Do not copy generated password to clipboard (this password will be used for encrypting and decrypting file - you show save this password on your own).
      Generating password
  4. The final step is clicking Run encryption button as below and choosing destination path of encrypted file. Notice that all encrypted files will have .encrypted extension.
    clicking on run encryption button

  5. After encryption there will be a message about success file encryption:
    encryption success message

  6. My plain text:

secret message

and his cipher text for given AES key:

¶8 ŽcÁNSs])מ<

To decrypt file

Let's say we have an encrypted file called secret.encrypted.

  1. Open app, make sure te "Decrypt" type is choosen.

  2. Select file by clicking "Choose file" button and choose file with .encrpted extension:

Clicking the choose file button

  1. Put your password to decrypt file in password field.

Putting password in password field

  1. The final step is clicking Run decryption button as below and choosing destination path of decrypted file. Notice that all decrypted files will have no extension.

clicking on run decryption button

  1. After decyption there will be a message about success file encryption:

encryption success message

  1. My cipher text:
¶8 ŽcÁNSs])מ<

and plain text with given AES key:

secret message

Testing

Application Was tested on:

Windows 10 1903 (OS build: 18362.239)

Built With

License

This project is licensed under the MIT License - see the LICENSE.md file for details