private static StandardPBEStringEncryptor getEncryptor(final String symmetricKey) {
		Security.addProvider(new BouncyCastleProvider());
		final StandardPBEStringEncryptor mySecondEncryptor = new StandardPBEStringEncryptor();
		mySecondEncryptor.setProviderName(BC_PROVIDER_NAME);
		mySecondEncryptor.setAlgorithm(PBEWITHSHA256AND128BITAES_CBC_BC);
		mySecondEncryptor.setPassword(symmetricKey);
		return mySecondEncryptor;
	}
private static StandardPBEStringEncryptor getEncryptor(final String symmetricKey) {
		Security.addProvider(new BouncyCastleProvider());
		final StandardPBEStringEncryptor mySecondEncryptor = new StandardPBEStringEncryptor();
		mySecondEncryptor.setProviderName(BC_PROVIDER_NAME);
		mySecondEncryptor.setAlgorithm(PBEWITHSHA256AND128BITAES_CBC_BC);
		mySecondEncryptor.setPassword(symmetricKey);
		return mySecondEncryptor;
	}
private static StandardPBEStringEncryptor getEncryptor ( final String symmetricKey ) { Security . addProvider ( new BouncyCastleProvider ( ) ) ; final StandardPBEStringEncryptor mySecondEncryptor = new StandardPBEStringEncryptor ( ) ; mySecondEncryptor . setProviderName ( BC_PROVIDER_NAME ) ; mySecondEncryptor . setAlgorithm ( PBEWITHSHA256AND128BITAES_CBC_BC ) ; mySecondEncryptor . setPassword ( symmetricKey ) ; return mySecondEncryptor ; }
Gets the encryptor.

@param symmetricKey
the symmetric key
@return the encryptor
Gets the encryptor .