code: public static String encrypt(String apiKey, Map<String, Object> options)
              throws ScopedKeyException {
          if (apiKey.length() == 64) {
              return encrypt(KeenClient.client(), apiKey, options);
          } else {
              return encrypt32CharacterKey(KeenClient.client(), apiKey, options);
          }
      }
docs: Encrypts the given options with a Keen API Key and creates a Scoped Key.
  
  @param apiKey  Your Keen API Key.
  @param options The options you want to encrypt.
  @return A Keen Scoped Key.
  @throws ScopedKeyException an error occurred while attempting to encrypt a Scoped Key.