Re: How and where to store a SecretKey



David Segall wrote:
The typical tutorial on Java encryption such as
<http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#SimpleEncrEx>
shows you how to generate a SecretKey and use it immediately to
encrypt and decrypt some text. I have not found any guidance on where
I might store the key or what format it is in. How can I store the key
in a database or in a property list?

SecretKey is serializable and can be stores as such.

But I think it is much more common to store the bytes used
to construct the SecretKey (SecretKeySpec).

Where to store it depends on the context.

Arne
.



Relevant Pages

  • Re: How and where to store a SecretKey
    ... shows you how to generate a SecretKey and use it immediately to ... encrypt and decrypt some text. ... I might store the key or what format it is in. ...
    (comp.lang.java.programmer)
  • Re: Clipper tools library
    ... > I want encrypt a frase with the password equal to my frase like ... It means you'd have to store the plain text of everything you encrypted ... No need to decrypt as you already have the decrypted string/phrase stored ...
    (comp.lang.clipper)
  • Ironclad and AES
    ... I'm trying to use Ironclad to encrypt a string using AES and store it ... a separate Java program that's out of my ... control will read and decrypt the file. ... encrypt it and store it to disk, and then reading it back it to the CL ...
    (comp.lang.lisp)
  • Ironclad and AES
    ... I'm trying to use Ironclad to encrypt a string using AES and store it ... a separate Java program that's out of my ... control will read and decrypt the file. ... encrypt it and store it to disk, and then reading it back it to the CL ...
    (comp.lang.lisp)
  • Search for an Encrypted value
    ... Encrypt the number and store in sql database ... Used TripleDes to Encrypt and store the data in the db ... Used TripleDes to Decrypt and dsplay the data from the db ...
    (microsoft.public.dotnet.languages.vb)