Re: How and where to store a SecretKey
- From: Arne Vajhøj <arne@xxxxxxxxxx>
- Date: Sat, 26 Jan 2008 15:55:45 -0500
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
.
- References:
- How and where to store a SecretKey
- From: David Segall
- How and where to store a SecretKey
- Prev by Date: Re: Graphics help please
- Next by Date: Application security question
- Previous by thread: How and where to store a SecretKey
- Next by thread: Re: How and where to store a SecretKey
- Index(es):
Relevant Pages
|