module data.crypt_helper
#
Short summary#
module ensae_teaching_cs.data.crypt_helper
Data for competitions
Functions#
function |
truncated documentation |
---|---|
Decrypts a file. |
|
Encrypts a file. |
Documentation#
Data for competitions
- ensae_teaching_cs.data.crypt_helper.decrypt_data(password, input, output)#
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.
- ensae_teaching_cs.data.crypt_helper.encrypt_data(password, input, output)#
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.