Jerry Girgich wrote:Although I can't figure out the syntax for using Base 64 to decrypt the secret key
Stephan van Hulst wrote:I don't understand why you're working with Strings in the first place. Why don't you just work with byte arrays?
Also, why are you not using Cipher.wrap() and Cipher.unwrap() to encrypt/decrypt your symmetric key?
Stephan van Hulst wrote:
As Henry has pointed out before, you need to reverse your process. That doesn't just mean reverse the operations you perform, but also reverse the order of the operations.
Jerry Girgich wrote:So I was finally able to decrypt the key like this:
Henry Wong wrote:
Your decryptedKey() method... well ... doesn't do any decrypting at all. From the looks of it, it is doing some XML parsing?
Why are you doing that? Totally confused...![]()
Jerry Girgich wrote:I think I am pretty much stuck and I am not sure how to go forward
Don't get me started about those stupid light bulbs. |