code: public static String[] encrypt(String password) {
          SecureRandom random = new SecureRandom();
          String salt = new BigInteger(130, random).toString(32);
          String encryptPassword = encrypt(password, salt);
          return new String[] {encryptPassword, salt};
      }
docs: Encrypt a password string with a random generated salt.
  
  @param password The origin password need to be encrypt.
  @return An array with two elements: The first one is the encrypted password and the second one is the salt.