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

org.onetwo.common.encrypt.EncryptCoderFactory Maven / Gradle / Ivy

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