Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

I am generating a random number and using the random am generating the AES key of 256 bit. If I use the same random number again, whether it will generate the same AES Key again ? If not means why ?

Thanks in advance..

share|improve this question
If thats the only source of random entropy then, of course it would generate the same key. –  Ramhound Apr 26 at 18:40

1 Answer 1

I have only used PBKDF2 and it generates the same key every time. I think that as long as you use the same key derivation function with the same parameters every time (like the random number in this case), it will. I suggest you to read a bit about the key derivation function you are using.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.