public final class CcXOR extends Object implements Codec
Constructor and Description |
---|
CcXOR(Codec codec,
byte[] key)
Ctor.
|
CcXOR(Codec codec,
String key)
Ctor.
|
public CcXOR(Codec codec, String key)
codec
- Original codeckey
- Secret key for encodingpublic CcXOR(Codec codec, byte[] key)
codec
- Original codeckey
- Secret key for encodingpublic byte[] encode(Identity identity) throws IOException
Codec
encode
in interface Codec
identity
- The identityIOException
- If failspublic Identity decode(byte[] text) throws IOException
Codec
decode
in interface Codec
text
- TextIOException
- If failsCopyright © 2015 Takes. All rights reserved.