Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Data Security for Parameters.
appform
<p>Hi,</p>
<p> </p>
<p>I am facing security issue in JSAPI code.</p>
<pre>
myViewer.setReportName("/Home/administrator/Reports/Base/mlt_data.rptdesign" );</pre>
<p><span style="font-family:'courier new';"><span style="font-size:10pt;">myViewer.setParameters({"ip":"127.0.0.1","Port":"3306","db":"TestDb","Username":"abc","Password":"123456"});</span></span></p>
<p> </p>
<p><span style="font-family:'courier new';"><span style="font-size:10pt;">Above lines are used to call a report and pass parameters to the report but our problem is how can we provide data security to parameters as there are visible in view source in browser.</span></span></p>
<p> </p>
<p><span style="font-family:'courier new';"><span style="font-size:10pt;">Is there any encryption method for parameters or any other way to provide security.</span></span></p>
<p> </p>
<p><span style="font-family:'courier new';"><span style="font-size:10pt;">Please provide a quick solution.</span></span></p>
<p> </p>
<p><span style="font-family:'courier new';"><span style="font-size:10pt;">Regards,</span></span></p>
<p><span style="font-family:'courier new';"><span style="font-size:10pt;">Swapna.</span></span></p>
Find more posts tagged with
Comments
kclark
<p>You could use a library like <a data-ipb='nomediaparse' href='
https://code.google.com/p/crypto-js/'>crypto-js</a> to
encrypt the string before you set the parameter. Then use it again in your report to decrypt the string.</p>
appform
<p>Hi Clark,</p>
<p> </p>
<p>Ok i'll encrypt in my code but how can i decrypt the parameters in report .</p>
<p> </p>
<p>Regards,</p>
<p>Swapna.</p>