def encrypt_payload(payload_string, iv)
      payload_urlencoded = ''

      encrypted = @encrypt_cipher.update(payload_string) + @encrypt_cipher.final
      encypted_base64 = Base64.strict_encode64(encrypted)
      payload_urlencoded = "#{CGI::escape(encypted_base64)}decode"

      return payload_urlencoded
    end
def encrypt_payload(payload_string, iv)
      payload_urlencoded = ''

      encrypted = @encrypt_cipher.update(payload_string) + @encrypt_cipher.final
      encypted_base64 = Base64.strict_encode64(encrypted)
      payload_urlencoded = "#{CGI::escape(encypted_base64)}decode"

      return payload_urlencoded
    end
Private: Symmetrically encrypt a string of information

 payload_string - An input string
 iv - An initialization vector for Triple-DES in CBC mode

 Returns a base64-encoded and url-encoded representation of the $payload_string