What do you do with an Encryption key when you close your program?

How do you store your key when you exit your program? Don't wanna store it in a file as plain text. Don't think that\s a secure option
[143 byte] By [jay_dawga] at [2007-10-2 15:51:51]
# 1

Password/passphrases are commonly used to provide keys for encryption programs. Sun's JCE and Bouncycastle's crypto library both support a variety of password-based encryption (PBE) ciphers. The basic idea behind the PBE scheme is that no keys need be stored in plaintext, but at some point the encryption and decryption software will query a human to enter a password to complete the process.

Many applications and protocols use the techniques of public key cryptography (PKC) to "store", or transmit, keys to the decrypting entity. PKC is little too complicated to go into here.

Also common are insecure methods which rely on obscurity rather than cryptography to achieve security. Storing the key in a plaintext file is, as you noted, is insecure, but not rare. Often the keys are obscured in a way that requires reverse engineering the software to figure out the key, e.g. the key is hard-coded in the software.

The thing is, since encryption APIs are relatively common and easy to use, the hard part of crypto implementation is now key management.

ghstarka at 2007-7-13 16:00:19 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2
Google keystore.
_bensmytha at 2007-7-13 16:00:19 > top of Java-index,Security,Other Security APIs, Tools, and Issues...