gwt/3.3/src/pubnub/api/Pubnub.java
/**
     * Encrypt
     *
     * @param JSONObject Message to encrypt
     * @return JSONObject as Encrypted message
     */
Encrypt
@param JSONObject Message to encrypt
@return JSONObject as Encrypted message
Encrypt @param JSONObject Message to encrypt @return JSONObject as Encrypted message
@SuppressWarnings("unchecked")
    public JSONObject encrypt(JSONObject message) {
        try {
            JSONObject message_encrypted = new JSONObject();
            Iterator<String> it = message.keys();
            while (it.hasNext()) {
                String key = it.next();
                String val = message.getString(key);
                message_encrypted.put(key, encrypt(val));
            }
            return message_encrypted;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
@ SuppressWarnings ( "unchecked" ) public JSONObject encrypt ( JSONObject message ) { try { JSONObject message_encrypted = new JSONObject ( ) ; Iterator < String > it = message . keys ( ) ; while ( it . hasNext ( ) ) { String key = it . next ( ) ; String val = message . getString ( key ) ; message_encrypted . put ( key , encrypt ( val ) ) ; } return message_encrypted ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
Encrypt
 @param JSONObject Message to encrypt
 @return JSONObject as Encrypted message
Encrypt @param JSONObject Message to encrypt @return JSONObject as Encrypted message