org.onetwo.common.encrypt.EncryptCoderFactory Maven / Gradle / Ivy
package org.onetwo.common.encrypt;
import java.security.KeyPair;
import javax.crypto.SecretKey;
public class EncryptCoderFactory {
public static EncryptCoder aesCoder(){
return new AESEncryptCoder();
}
public static EncryptCoder aesCoder(int size, boolean generatedSecretKey){
return new AESEncryptCoder(size, generatedSecretKey);
}
public static EncryptCoder rsaCoder(){
return new RSAEncryptCoder();
}
public static EncryptCoder rsaCoder(int size, boolean generatedKeyPair){
return new RSAEncryptCoder(size, generatedKeyPair);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy