yanmarques / vpnGate

Free auto-maintain VPN service
GNU General Public License v3.0
1 stars 0 forks source link

Create a cryptographic module #10

Open yanmarques opened 4 years ago

yanmarques commented 4 years ago

Description

A module with utility functions/methods for applying cryptographic algorithms.

Requirements

Try to be as transparent as possible.

yanmarques commented 4 years ago

Requirement: 1.1

A function called block_hashsum which correctly dumps the object into a string, taking care of always get the same result given same block attributes, then applying a default hashing function.

The default algorithm is SHA256.

yanmarques commented 4 years ago

Requirement: 1.2, 1.4, 1.5

The cryptography module will be used to handle the cryptographic primitives.

It consists from an object with the following methods:

yanmarques commented 4 years ago

Requirement: 1.3, 1.4

It consists from an object, which extends the object from requirements 1.2, 1.4, 1.5, containing the following methods: