Why is the ciphertext 32 bytes long when encrypting 16 bytes with AES?
问题 I use encryption AES algorithm, when i encrypt 16 byte(one block) the result is 32 byte. Is this ok? My source code that i used is: package net.sf.andhsli.hotspotlogin; import java.security.SecureRandom; import javax.crypto.Cipher; import javax.crypto.KeyGenerator; import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; /** * Usage: * <pre> * String crypto = SimpleCrypto.encrypt(masterpassword, cleartext) * ... * String cleartext = SimpleCrypto.decrypt(masterpassword, crypto) *