异或加密

@param string {@link String}
@param key {@link Integer}

@return {@link String}
190455
public static String xor(String string, int key) {
        char[] encrypt = string.toCharArray();
        for (int i = 0; i < encrypt.length; i++) {
            encrypt[i] = (char) (encrypt[i] ^ key);
        }
        return new String(encrypt);
    }
1201102
int addKey(BufferedString str) {
    // _map is shared and be cast to null (if categorical is killed) -> grab local copy
    IcedHashMap<BufferedString, Integer> m = _map;
    if( m == null ) return Integer.MAX_VALUE;     // Nuked already
    Integer res = m.get(str);
    if( res != null ) return res; // Recorded already
    assert str.length() < 65535; // Length limit so 65535 can be used as a sentinel
    int newVal = _id.incrementAndGet();
    res = m.putIfAbsent(new BufferedString(str), newVal);
    if( res != null ) return res;
    if( m.size() > MAX_CATEGORICAL_COUNT) maxDomainExceeded = true;
    return newVal;
  }
1304377
public StrStrMap addPair(String key, String value) {
        if (key == null || value == null) {
            logger.error("invalid key value as null. ignore pair");

        } else {

            this.map.put(key, value);
        }

        return this;
    }
309073
protected static String parse(String key) {
        String value = (String) fetch(key);
        return parseFoundKey(value);
    }
427414
public Groundy addStringArrayList(String key, ArrayList<String> value) {
    mArgs.putStringArrayList(key, value);
    return this;
  }
582749
protected static String fetchString(String key) {
        List<String> stringList = (List<String>) fetchObject(key);
        return stringList.get(RandomUtils.nextInt(stringList.size()));


    }
1009343
public static String xor(String string, String key) {
        return xor(string, CryptUtils.stringToKey(string));
    }
778239
@SuppressWarnings({ "null", "unused" })
  public @NotNull SuffixBuilder put(@NotNull String key, @NotNull Object value) {
    if (key == null) {
      throw new IllegalArgumentException("Key must not be null");
    }
    if (value != null) {
      validateValueType(value);
      parameterMap.put(key, value);
    }
    return this;
  }
185801
@Override
  public String get(String key) {
    Object value = conf.get(key);
    if(null != value) {
      return value.toString();
    }
    else {
      return null;
    }
  }
860232
public static SObject of(String key, String content) {
        return new StringSObject(key, $.requireNotNull(content));
    }
173019
@SuppressWarnings("unchecked")
    public M with(final String key, final String value) {
        put(key, value);
        return (M) this;
    }
873181
public String get(String key) {
    	if(requestedKeys == null) requestedKeys = new HashSet<String>();
    	String value = map.get(key);
    	requestedKeys.add(key);
    	return value;
    }
973444
public int getInt(String key) {
    String value = getString(key);
    if (StringUtils.isNotEmpty(value)) {
      return Integer.parseInt(value);
    }
    return 0;
  }
1309485
public String getString(String key) {
	    Object obj = get(key);
	    if (obj != null && obj instanceof String) {
		    return (String) obj;
	        
		}
	    return null;
	    
	}
210686
public String getString(String key) {
    Object value = get(key);
    if (value instanceof String) {
      return (String) value;
    } else if (value != null) {
      return String.valueOf(value);
    }
    return null;
  }
352513
public AmqpTable addLongString(String key, String value) {
        this.add(key, value, AmqpType.LONGSTRING);
        return this;
    }
1354807
public void insert(String key, char val) {
        // make sure we have enough room in the arrays
        int len = key.length()
                  + 1;    // maximum number of nodes that may be generated
        if (freenode + len > eq.length) {
            redimNodeArrays(eq.length + BLOCK_SIZE);
        }
        char strkey[] = new char[len--];
        key.getChars(0, len, strkey, 0);
        strkey[len] = 0;
        root = insert(root, strkey, 0, val);
    }