Coder Social home page Coder Social logo

rsa-encryption's Introduction

RSA Public Key Cryptography

This program will perform RSA public key cryptography. This program can generate public and private keys, encrypt and decrypt using the public and private keys. RSA encryption uses various math concepts like large primes numbers and modulus.

This is a school project so no students of CSE 13s should be looking at this source code.

Building

Build the program with:

To build encrypt:

$ make encrypt

To build decrypt:

$ make decrypt

To build keygen:

$ make keygen

or

to build all:

$ make all

To format:

$ make format

To clean files:

$ make clean

Running

Run encrypt with (including command line options):

$ ./encrypt [-hv] [-i infile] [-o outfile] -n pubkey

Command line options for encrypt: -h Display program help and usage. -v Display verbose program output. -i infile Input file of data to encrypt (default: stdin). -o outfile Output file for encrypted data (default: stdout). -n pbfile Public key file (default: rsa.pub).

Run decrypt with (including command line options):

$ ./decrypt [-hv] [-i infile] [-o outfile] -n privkey

Command line options for decrypt: -h Display program help and usage. -v Display verbose program output. -i infile Input file of data to decrypt (default: stdin). -o outfile Output file for decrypted data (default: stdout). -n pvfile Private key file (default: rsa.priv).

Run keygen with (including command line options):

$ ./keygen [-hv] [-b bits] [-i confidence] [-n pbfile] [-d pvfile] -s seed

Command line options for keygen: -h Display program help and usage. -v Display verbose program output. -b bits Minimum bits needed for public key n. -i confidence Miller-Rabin iterations for testing primes (default: 50). -n pbfile Public key file (default: rsa.pub). -d pvfile Private key file (default: rsa.priv). -s seed Random seed for testing.

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.