Skip to content

Latest commit

 

History

History
56 lines (32 loc) · 1.45 KB

File metadata and controls

56 lines (32 loc) · 1.45 KB

Cryptography

Cryptography Repository to host self-implemented cipher algorithms

Affine Cipher

Affine Cipher implementation using C++

How to run?

make && ./main

Big Data Primality Test

Fermat Test to test a big number if it's a prime number with Miracl Library in C++.

Caesar Cipher

Encryption of a letter x by a shift n can be described mathematically as En ( x ) = ( x + n ) mod 26

Chinese Remainder Theorem

Use Chinese Remainder Theorem Algorithm to Solve Congruence Equations(big number) with Miracl Library in C.

Diffie Hellman Algorithm

Diffie Hellman Algorithm implementation using with c

ElGamal

ElGamal Algorithm implementation with Miracl library using C

Hill Cipher

Hill Cioher encrypt and decrypt with Eigen Library.

You can download the library from gitlab and follow the link——Eigen 3.3.8.zip

After extrat the zip, just copy the Eigen folder in the eigen-3.3.8 folder into your project place to test the program.

Demo

LZW Compress

The OpenSource LZW Compress algorithm self-implementation in C++.

The officeal source code can be found on the offical website of LEW Compress.

Playfair Encryption

Cryptography algorithm——Playfair Encryption, implemented with C++ STL Library.

Stream Cipher

Stream Cipher(RC4) implementation using C++