code: public static char[] encrypt(char[] password)
  	{
  		if (password == null || password.length == 0)
  		{
  			return null;
  		}
  
  		try
  		{
  			String encryptedString = null;
  
  			SecretKeySpec key = new SecretKeySpec(init, "Blowfish");
  			Cipher cipher = Cipher.getInstance(CIPHER_INSTANCE);
  			cipher.init(Cipher.ENCRYPT_MODE, key);
  			byte[] encrypted = cipher.doFinal(String.valueOf(password).getBytes(Charset.forName("UTF8")));
  			encryptedString = byteArrayToHexString(encrypted);
  
  			return encryptedString.toCharArray();
  		}
  		catch (Exception e)
  		{
  			throw new SecurityException("Unable to encrypt password", e);
  		}
  	}
docs: Example return encrypted(........)
  
  @param password String to be encrypted
  @return String encrypted String