Information Security Asked by Geo M on December 10, 2021
I want to generate a password for a Keystore in java on Windows platform.
I would like to make a HASH out of some hardware information from my computer and some salt.
My question is: which hardware or system information i should use for my password generator? I want something that is 100% guaranteed it does not change so i can generate the same password over again. This way i don’t lose access to my data.
Thank you!
On windows, you can use the DPAPI to protect your keystore and ensure that the data can be decrypted only on the machine on which it was encrypted (or if you want, by only the user that encrypted it).
This will be a more straight forward approach than trying to generate a hash out of hardware information, will provide the same (or better) degree of security and will have less chances of making a mistake and would also avoid the problem of hardware changes resulting in data loss.
Answered by nobody on December 10, 2021
/dev/urandom
to get the random value without carrying about what the source of the randomness exactly is. But yes, the device will use noise generated by the devices to increase the entropy.SecureRandom
class. The output is unpredictable and this should be the most important concern regarding a random number generator.Answered by Marek Puchalski on December 10, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP