OpenQuizz
Une application de gestion des contenus pédagogiques
flask_restful.utils.crypto Namespace Reference

Functions

def pad (data)
 
def strip (data)
 
def create_cipher (key, seed)
 
def encrypt (plaintext_data, key, seed)
 
def decrypt (encrypted_data, key, seed)
 

Variables

int BLOCK_SIZE = 16
 
string INTERRUPT = b'\0'
 
string PADDING = b'\1'
 

Function Documentation

◆ create_cipher()

def flask_restful.utils.crypto.create_cipher (   key,
  seed 
)

◆ decrypt()

def flask_restful.utils.crypto.decrypt (   encrypted_data,
  key,
  seed 
)

◆ encrypt()

def flask_restful.utils.crypto.encrypt (   plaintext_data,
  key,
  seed 
)

◆ pad()

def flask_restful.utils.crypto.pad (   data)

◆ strip()

def flask_restful.utils.crypto.strip (   data)

Variable Documentation

◆ BLOCK_SIZE

int BLOCK_SIZE = 16

◆ INTERRUPT

string INTERRUPT = b'\0'

◆ PADDING

string PADDING = b'\1'