0

I am using the follwing code to encrypt a byte array of 32 byte, and using a key of 16 byte length

 byte[] encryptedByteArray;
Cipher eCipher=Cipher.getInstance("AES");
eCipher.init(Cipher.ENCRYPT_MODE,key );
encryptedByteArray=eCipher.doFinal(clearByteArray);

what i need to know does changing hardware for multi core cpu effect the time needed to encrypt such small size of data? or it will be same whatever the hardware is since small number of instruction must be done. when talking about hardware let us consider 2 pc first is core 2 duo 2.0 ghz with 1g ram and the second is core i5 2.0 ghz with 3 g ram .

4

0 回答 0