类 XOREncryptor
- java.lang.Object
-
- cn.mcres.karlatemp.mxlib.encrypt.XOREncryptor
-
- 所有已实现的接口:
Encryptor,Encryptor.Decoder,Encryptor.Encoder
public class XOREncryptor extends Object implements Encryptor, Encryptor.Decoder, Encryptor.Encoder
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 cn.mcres.karlatemp.mxlib.encrypt.Encryptor
Encryptor.Decoder, Encryptor.Encoder
-
-
构造器概要
构造器 构造器 说明 XOREncryptor(byte[] pwd)
-
方法概要
修饰符和类型 方法 说明 static XOREncryptorcreate(byte[] pwd, int level)byte[]decode(byte[] b)byte[]encode(byte[] data)Encryptor.DecodergetDecoder()Encryptor.EncodergetEncoder()intgetLevel()booleanisSupportDecoder()booleanisSupportEncoder()protected bytepos(int index, int len)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 cn.mcres.karlatemp.mxlib.encrypt.Encryptor.Decoder
decode, decodeToString, decodeToString
-
从接口继承的方法 cn.mcres.karlatemp.mxlib.encrypt.Encryptor.Encoder
encode, encodeToString, encodeToString
-
-
-
-
方法详细资料
-
create
public static XOREncryptor create(@NotNull byte[] pwd, int level)
-
getLevel
public int getLevel()
-
pos
protected byte pos(int index, int len)
-
encode
public byte[] encode(byte[] data) throws EncryptException- 指定者:
encode在接口中Encryptor.Encoder- 抛出:
EncryptException
-
decode
public byte[] decode(byte[] b) throws EncryptException- 指定者:
decode在接口中Encryptor.Decoder- 抛出:
EncryptException
-
getEncoder
public Encryptor.Encoder getEncoder()
- 指定者:
getEncoder在接口中Encryptor
-
getDecoder
public Encryptor.Decoder getDecoder()
- 指定者:
getDecoder在接口中Encryptor
-
isSupportEncoder
public boolean isSupportEncoder()
- 指定者:
isSupportEncoder在接口中Encryptor
-
isSupportDecoder
public boolean isSupportDecoder()
- 指定者:
isSupportDecoder在接口中Encryptor
-
-