SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Prime wrote:I don't get its purpose. It may be secure, until you need to read it.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Ulf Dittmer wrote:It would involve storing the encrypted string in a byte[], and only decrypting it when it gets accessed (or whenever the contents of the string are altered, and then re-encrypting it). Any intermediate cleartext should be stored in local variables, not instance variables.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Ulf Dittmer wrote:What does it matter what .Net does?
Clarence J M Tauro wrote:Well, if we have access to the char/byte array which is actually storing the string, (which actually would be a part of a class, say SString), then we can apply some block encryption algorithm on it, say DES or AES. So, even if our string gets captured, it is encrypted, and hence safe!!
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|