GithubHelp home page GithubHelp logo

security-hw's Introduction

Security

In this assignment code you can find the way to implement tow cryptosystems (RSA,Keyword columnar) Using python languages so you will be able to enc/decrypt your messages. we worked as a team with @AlherbishLama and @HaneenKhaled1

RSA

Asymmetric encryption algorithm so there is private and public key . we implemented tis algorithm by following these steps:-

  • ask the user to enter tow prime numbers and validate that the input is prime and int.
  • compute n and phi
  • compute the list that contain all possiple e and ask the user to choose from it
  • compute the d
  • now we are be able to generate the private and the public key the public key is a pair from (e,n)while the private key is a pair of numbers(d,n)
  • the user can choose either encrypt or decrypt and passing the plain text to encrypt or decrypt messages
  • encrypt or decrypt methods will convert the letters into numbers and also will encrypt/decrypt.

Keyword columnar

The key for the columnar transposition cipher is a keyword e.g. GERMAN. The row length that is used is the same as the length of the keyword.

  • the user will choose keyword we will assign numbers to each letter accoarding th the alphapatic order
  • build the grid and order the letters inside it
  • we will take number 1 as a start each letter in the colomn will write it next to each other then we will move to colomn num 2 and so on this is the encryption process
  • to decrypt we determined the size of the grid and basing the location of the letters .

security-hw's People

Contributors

raebal1998 avatar

Watchers

 avatar  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.