module data.crypt_helper

Short summary

module ensae_teaching_cs.data.crypt_helper

Data for competitions

source on GitHub

Functions

function

truncated documentation

decrypt_data

Decrypts a file.

encrypt_data

Encrypts a file.

Documentation

Data for competitions

source on GitHub

ensae_teaching_cs.data.crypt_helper.decrypt_data(password, input, output)[source]

Decrypts a file.

Paramètres
  • input – input filename

  • output – output filename

  • password – The encryption key - a string that must be either 16, 24 or 32 bytes long. Longer keys are more secure. If the data to encrypt is in bytes, the key must be given in bytes too.

source on GitHub

ensae_teaching_cs.data.crypt_helper.encrypt_data(password, input, output)[source]

Encrypts a file.

Paramètres
  • input – input filename

  • output – output filename

  • password – The encryption key - a string that must be either 16, 24 or 32 bytes long. Longer keys are more secure. If the data to encrypt is in bytes, the key must be given in bytes too.

source on GitHub