Skip to content

CS studies - Cryptography with Elements of Algebra project

Notifications You must be signed in to change notification settings

weronikaolejniczak/cryptography-with-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cryptography in JavaScript

Overview

This module is being developed as a part of Cryptography with elements of algebra course. It includes implementation of basic and advanced algorithms, including cryptographic algorithms.

Module 1

Module 1 includes basic algorithms:

and advanced algorithms:

  • findInverse: finding an inverse modulo n,
  • fastPower: fast power algorithm,
  • isSquare: algorithm which checks whether an element is a square modulo p,
  • squarePrime: algorithm which finds a square root of a square modulo p,
  • fermat: algorithm which checks the primality using Fermat's test.

Project setup

Dependencies

To install dependencies, run the following command in the root of the project:

npm install

How to run

To run the project, run the following command in the root of the project:

npm start

You will see the result as the command line output.

Testing

To test algorithms, run the following command in the root of the project:

npm test

About

CS studies - Cryptography with Elements of Algebra project

Topics

Resources

Stars

Watchers

Forks