Coder Social home page Coder Social logo

rsa's Introduction

RSA

My Java implementation of RSA encryption.

Introduction

This program aims to provide the means to encrypt and decrypt files using the RSA algorithm.

How to Use

  1. Create an instance of RSAKeyGenerator.
  2. Call it's makeKey() method, passing in a constant to specify which kind of key should be returned.
    • RSAKey.PUBLIC_KEY for encrypting
    • RSAKey.PRIVATE_KEY for decrypting
    • RSAKey.COMPLETE_KEY for efficient decryption using the Chinese Remainder Theorum
  3. Cast the RSAKey returned to the appropriate type of RSAKey.
    • RSAPublicKey
    • RSAPrivateKey
    • RSACompleteKey
  4. Call the key's use() method, passing in the source and destination file paths.
    • the key will perform it's operation on the file specified by source
    • the key will write the result of it's operation to the file specified by destination

Additionally, RSATest now contains a main method for testing. Useage is as follows:

java com.rhg.rsa.RSATest plaintext destination

where plaintext is the path to a readable file, and destination is the prefix to use for storage of files created during the tests.

Version History

2013/8/27

  • Fixed and tested the code
  • Now contains test class RSATest

2012/12/01

  • Commited the project to GitHub unchanged.
  • I don't know if it works. It may not be the last version I had, as I'm not even sure when I gave this copy to my friend, as it was almost 2 years ago now.

2010/05/31

  • Stoped working on the project.

Author

  • Robert Grant

rsa's People

Contributors

rhgrant10 avatar

Watchers

ashley elizabeth dorris 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.