All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.zcltd.btg.sutil.encrypt.EncryptionKey Maven / Gradle / Ivy

There is a newer version: 4.0.24
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy