title: Reverse engineering decoder
body: <p>How would I create an encoder using this decoding function?</p>
  <pre><code>String value = &quot;yepCock&quot; + Math.log(3.0) / 4.0;
  
  public static String b(String s) {
      byte[] base = Base64.getDecoder().decode(s);
      char[] result = new char[base.length];
      for (int i = 0; i &lt; base.length; ++i) {
          result[i] = (char)(base[i] ^ value.charAt(i % value.length()));
      }
      return new String(result);
  }
  </code></pre>