byte[] XTEA_key = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
Key_TinyEncryptionAlgorithm xtea = new Key_TinyEncryptionAlgorithm(XTEA_key);
string original_string = "FEZ is so easy!";
byte[] dados = UTF8Encoding.UTF8.GetBytes(original_string);
byte[] encrypted_bytes = xtea.Encrypt(dados, 0, dados.Length, null);
Debug.Print("-------------------------");
Debug.Print(encrypted_bytes[0].ToString());
Debug.Print(encrypted_bytes[1].ToString());
Debug.Print(encrypted_bytes[2].ToString());
Debug.Print(encrypted_bytes[3].ToString());
Debug.Print("-------------------------");
Dear Sir, in this code and encript the message FEZ is so easy! and i print the 4 first bytes of encripted data…, that returns
21
172
28
249
Comparing with the Jens Kuhner book
(expert. NET Micro Framework Second Edition)
The example returns differente value…
[url]http://www.inf.furb.br/~maw/asm51/xtea.jpg[/url]
Here executable
[url].:. FURB .:. DSC - Departamento de Sistemas e Computação .:.
May you help me ?
Miguel