lib/class/Authorization.js
function(data) {
      if (!data) {
        data = this.getContent();
      }
      return this.encoder.encryptAes(JSON.stringify(data), this.getSecret());
    }
function(data) {
      if (!data) {
        data = this.getContent();
      }
      return this.encoder.encryptAes(JSON.stringify(data), this.getSecret());
    }
function ( data ) { if ( ! data ) { data = this . getContent ( ) ; } return this . encoder . encryptAes ( JSON . stringify ( data ) , this . getSecret ( ) ) ; }
Encrypt data or content

@param {Object} [data] The data to encrypt or content if missing
@return {String} The encrypted result in Base64 format
Encrypt data or content