+ 2
Pycrypto aes
im try to write a program that encrypt txt file. i almost understand the concept of aes cryptography. what i know, aes can only encrypt 16 byte of data. i read something about padding. i not understand about that. im only kid.can someone help me? current little project: https://code.sololearn.com/cxdVwF5bVy2F/?ref=app
3 Réponses
+ 3
You want use ciphers like (AES, DES,3DES). These ciphers works with blocks of data. From that reason the input data (Data for encryption), means its length, has to in blocks which have particular lenght. Due to you have to add characters as an extra redundant data for to make entire block of data.This approach is called padding.
+ 3
yes kevin,exactly.The length of data must by devided by 16 without remaining(%16 looks fine;))
+ 1
oh my god, now make sense.thanx a lot.
the point of padding is:
we juzt need to add data so become data % 16 = 0