An open API service indexing awesome lists of open source software.

https://github.com/dubniczky/cryptolab

A hands-on cryptography repository containing implementations of fundamental encryption, decryption, hashing, padding, and random number generation techniques.
https://github.com/dubniczky/cryptolab

cryptography encryption hashing padding python

Last synced: 2 months ago
JSON representation

A hands-on cryptography repository containing implementations of fundamental encryption, decryption, hashing, padding, and random number generation techniques.

Awesome Lists containing this project

README

          

# Cryptographic Examples

## Implementations

### Random Number Generators
| Name | Lines | CC | CC Rank | Halstead Volume | Halstead Length | Halstead Difficulty |
|-|-|-|-|-|-|-|
| [xorshift](symmetric/xorshift.py) | 6 | 1 | A | 120.0 | 30 | 4.5 |
| [sine](symmetric/sine.py) | 5 | 1 | A | 51.9 | 15 | 1.9 |
| [lcg](symmetric/lcg.py) | 4 | 1 | A | 39.9 | 12 | 2.7 |
| [urandom](symmetric/urandom.py) | 2 | 1 | A | 15.5 | 6 | 1.0 |
| [logimap](symmetric/logimap.py) | 4 | 1 | A | 25.3 | 9 | 1.2 |

### Block Cipher Padding
| Name | Lines | CC | CC Rank | Halstead Volume | Halstead Length | Halstead Difficulty |
|-|-|-|-|-|-|-|
| [x923](symmetric/x923.py) | 6 | 4 | A | 135.7 | 30 | 5.3 |
| [zero](symmetric/zero.py) | 5 | 3 | A | 103.7 | 24 | 4.3 |
| [iso7816_4](symmetric/iso7816_4.py) | 7 | 3 | A | 100.1 | 24 | 4.0 |
| [pkcs7](symmetric/pkcs7.py) | 4 | 3 | A | 87.6 | 21 | 4.5 |
| [oaep](symmetric/oaep.py) | 18 | 4 | A | 265.0 | 54 | 3.6 |

### Hash Functions
| Name | Lines | CC | CC Rank | Halstead Volume | Halstead Length | Halstead Difficulty |
|-|-|-|-|-|-|-|
| [md5](symmetric/md5.py) | 19 | 2 | A | 114.7 | 27 | 3.2 |

### Symmetric Encryption
| Name | Lines | CC | CC Rank | Halstead Volume | Halstead Length | Halstead Difficulty |
|-|-|-|-|-|-|-|
| [tea](symmetric/tea.py) | 11 | 2 | A | 297.3 | 60 | 3.8 |
| [rcaesar](symmetric/rcaesar.py) | 13 | 3 | A | 98.1 | 24 | 2.5 |
| [otp](symmetric/otp.py) | 4 | 3 | A | 15.5 | 6 | 1.0 |
| [vignere](symmetric/vignere.py) | 15 | 3 | A | 80.0 | 21 | 1.9 |
| [caesar](symmetric/caesar.py) | 11 | 3 | A | 51.9 | 15 | 1.9 |
| [feistel](symmetric/feistel.py) | 8 | 3 | A | 66.6 | 18 | 1.8 |