You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Talvez concatenar o hash da mensagem no fim e quando decifras, pegas nos ultimos bytes e comparas com o hash da mensagem decifrada (menos os ultimos bytes):
encrypt("asd") => cifrar('asd(n bytes de hash("asd"))') => criptograma
decrypt(criptograma) => 'asd(n bytes de hash("asd"))' => hash("asd") == (n bytes de hash("asd"))
The text was updated successfully, but these errors were encountered:
A função de decrypt do AESCipher deve retornar None ou fazer raise quando a chave está errada:
Às vezes dá erro e outra dá
b''
.Isto às vezes funciona:
Talvez concatenar o hash da mensagem no fim e quando decifras, pegas nos ultimos bytes e comparas com o hash da mensagem decifrada (menos os ultimos bytes):
The text was updated successfully, but these errors were encountered: