johnpryan / tripledes-dart

Triple DES and DES block cipher implementation ported from CryptoJS
BSD 3-Clause "New" or "Revised" License
11 stars 15 forks source link

Chinese characters garbled #11

Open wuhuaqing opened 5 years ago

wuhuaqing commented 5 years ago

Chinese characters garbled:

var blockCipher = new BlockCipher(new DESEngine(), DESKEY);
String ciphertext = blockCipher.encodeB64("吃饭"); 
String decodeStr= blockCipher.decodeB64(ciphertext );

the result Incorrect!!!

coder-free commented 3 years ago

same issue

coder-free commented 3 years ago

https://github.com/coder-free/tripledes-dart.git this fixed it.