java - Decrypt difference integer values 1 and 2, using AesCrypto -


what causes results below different?

-------------- if value = 1 : -------------- string key1 = "123456"; string key2 = "654321"; string  x = aescrypto.encrypt(key1, string.valueof(1)); string  y = aescrypto.decrypt(key2, x);  result --> y = ���8��vw&�s  -------------- if value = 2 : -------------- string key1 = "123456"; string key2 = "654321"; string  x = aescrypto.encrypt(key1, string.valueof(2)); string  y = aescrypto.decrypt(key2, x);  result --> y = null 

why not produce null value 1, not equal value of 2? although both failed decrypt.

i don't know library when encrypting 1 key, , decrypting expect undefined results.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -