0
我嘗試使用加密庫加密所有零。但是,在我解碼之後,價值就沒有了。如何在解碼十六進制後獲取ASCII值?python解碼('十六進制')返回空ASCII字符串
from Crypto.Cipher import AES
#..
#.. cipher initialization
#..
ctr_a = ctr.decode("hex") #hex coded string to hex string
print ctr
print ctr_a
temp = obj.encrypt(str(ctr_a))
輸出
ctr = 00000000000000000000000000000000
ctr_a =