Rob Prime wrote:First of all, if A = 01 then Z = 26, not 25.
Bauke Scholtz wrote:You basically want to convert long to byte[]?
Then just do that You know, long is 64bits and each byte can hold 8bits. You need to shift 8bits from the long 8 times and get each of them in the byte array.
Please remember that this is an English only site. If you post something in another language, at MINIMUM, you must provide a translation. In any case, non-English posts are subject to deletion.
But it has to be a strong key, using a password in ASCII doesn't cut it. You have to take the user's input and make it strong, usually by running it through a hash such as SHA1.
You didn't really get to the point all that quick. The original topic was about salting the keys to the AES algorithm, and how would that improve security.