cn.zcltd.btg.sutil.encrypt.EncryptionKey Maven / Gradle / Ivy
package cn.zcltd.btg.sutil.encrypt;
/**
* key 信息
*/
public class EncryptionKey {
private byte[] key;
private String keyHex;
private String keyBase64;
public EncryptionKey(byte[] key) {
this.key = key;
this.keyHex = Encryption.bytesToHex(key);
this.keyBase64 = Encryption.encryptBASE64(key);
}
public byte[] getKey() {
return key;
}
public String getKeyHex() {
return keyHex;
}
public String getKeyBase64() {
return keyBase64;
}
}