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
As the code describes, I have an input of 18 characters, but the result is 36 characters long. I expected the output to be the same length compared to the input. Why is the output double the size of the input?
final iv = e.IV.fromBase16(hexMessage.substring(0, 24));
final key = e.Key.fromBase16(HEX.encode(Uint8List.fromList(aesPrivateKey!)));
final encrypter = e.Encrypter(e.AES(key,mode: e.AESMode.ctr,padding: null)); // Gebruik AES met de gegenereerde sleutel
final encrypted = encrypter.encrypt(hexMessage.substring(28), iv: iv); // Versleutel het bericht met de IVbericht met de IV
print(hexMessage.substring(28));
print(encrypted.base16);
The text was updated successfully, but these errors were encountered:
As the code describes, I have an input of 18 characters, but the result is 36 characters long. I expected the output to be the same length compared to the input. Why is the output double the size of the input?
The text was updated successfully, but these errors were encountered: