title: How can I encode strings in Flutter Application?
body: <p>I have a class called ُCreatorUrl in flutter. In this class and other classes, strings including the names of database tables are specified.
  How to protect data and strings in the flutter?
  Is this a common way of programming?
  Please help me.thank's</p>
  <pre><code>class CreatorUrl {
    static Future&lt;String&gt; createLinkRequest(Map body,{int page:20}) async {
      String blankUrl = 'http:mysite/myApi/api.php?x={&quot;ApiKey&quot;:&quot;SAZUChQJh8D7WRyJTc4BERedWd&quot;';
      switch (body['MOD']) {
        case 'select':
          blankUrl=blankUrl+',&quot;MOD&quot;:&quot;select&quot;,&quot;table&quot;:&quot;${body['table']}&quot;,&quot;what&quot;:&quot;*&quot;,&quot;sql&quot;:&quot;${body['sql']}&quot;,&quot;limit&quot;:&quot;0,${page==null?200:page}&quot;}';
          break;
        case 'insert':
          blankUrl=blankUrl+',&quot;MOD&quot;:&quot;insert&quot;,&quot;table&quot;:&quot;${body['table']}&quot;,&quot;insert&quot;:&quot;${body['insert']}&quot;}';
          break;
        case 'delete':
          break;
        case 'update':
          blankUrl=blankUrl+',&quot;MOD&quot;:&quot;update&quot;,&quot;table&quot;:&quot;${body['table']}&quot;,&quot;update&quot;:&quot;${body['update']}&quot;,&quot;sql&quot;:&quot;${body['sql']}&quot;}';
          break;
        case 'count':
          blankUrl=blankUrl+',&quot;MOD&quot;:&quot;count&quot;,&quot;table&quot;:&quot;${body['table']}&quot;,&quot;sql&quot;:&quot;${body['sql']}&quot;}';
          break;
        case 'sms':
          blankUrl=blankUrl+',&quot;MOD&quot;:&quot;sms&quot;,&quot;mob&quot;:&quot;${body['mob']}&quot;,&quot;text&quot;:&quot;${body['text']}&quot;}';
          print(&quot;Im here s&quot;);
          break;
      }
      return blankUrl;
    }
  }
  </code></pre>