You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
I noticed in many examples, KeyPairGenerator is used to generate public and private key. Every time you run the program it generates different key values.
But in real world, who want to generate the key's again-again. It would be done one time only.
Do organisation's run standalone program to generate the key's and then save in DB to be read by other server programs to encrypt/decrypt files?