i have to implement an encoding class, and i need a class that implements the Key interface. The problem is i don't really understand what exactly are the methods of that interface supposed to do. Can someone please explain to me what is a primary key encoding format for example? For example what would getFormat return for a One-Time-Pad encryption key? Thanks in advance!
Sorry nobody seems to know the answer yet.
What is “Key”? Is it the same as this? In one of those methods, it appears simply to return the name of the algorithm, but I don’t know about the other two. I did some googling for tutorials and found several hits. I don’t know whether they are any good, but here are a few: 123.
This question is too difficult for “beginning”, so I shall try moving it to our security forum.
The Key class is used for for encryption, not encoding; is it the former or the latter that you want to implement? I'm asking because you use both terms.
But let's back up a bit: Why are you asking this question? Do you really need to create a class that implements Key? Or would an object suffice? If the latter, you can construct one using the SecretKeySpec class.
Ping & DNS - updated with new look and Ping home screen widget