- 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(@org.jetbrains.annotations.NotNull byte[] pwd)
-
方法概要
修饰符和类型 方法 说明 static XOREncryptor
create(@org.jetbrains.annotations.NotNull byte[] pwd, int level)
byte[]
decode(byte[] b)
byte[]
encode(byte[] data)
Encryptor.Decoder
getDecoder()
Encryptor.Encoder
getEncoder()
int
getLevel()
boolean
isSupportDecoder()
boolean
isSupportEncoder()
-
从接口继承的方法 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 @org.jetbrains.annotations.NotNull byte[] pwd, int level)
-
getLevel
public int getLevel()
-
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
-
-