code: public static long longFromBase64(String value) {
          int pos = 0;
          long longVal = base64Values[value.charAt(pos++)];
          int len = value.length();
          while (pos < len) {
              longVal <<= 6;
              longVal |= base64Values[value.charAt(pos++)];
          }
          return longVal;
      }
docs: Decode a base64 string into a long value.