What is the best crypto algorithm (i.e. hardest to crack) to use when one has to encrypt short portions of data such as numeric (integer, long) for the Android platform ? I am looking for an encryption algorithm implemented on all phones using Android 1.6 and up and some implementation tutorial in Java preferably. Thanks.
preguntado el 01 de febrero de 12 a las 14:02
If your data is short, e.g an int, you don't need a full blown encryption algorithm, just xor it with your secret (password). Typical encryption algorithms are needed when your data is significantly larger than your secret.
For short data you are probably better off using something that doesn't need padding. Either a good stream cypher or AES in CTR mode would do.