Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I encrypt a string in JavaScript and decrypt that string in C#
    primarykey
    data
    text
    <p>I've seen this question asked before, though in these cases the poster wanted to encrypt something (usually a url) on a public facing website, and the responses were mostly "don't!". In my case, however, the JavaScript will be stored within a non-public internal system, so I think I have more leeway. One example of a similar question is: <a href="https://stackoverflow.com/questions/4614542/how-to-encrypt-url-in-javascript-and-decrypt-in-c">How to encrypt url in javascript and decrypt in c#</a> - and the answers don't actually answer the question.</p> <p>My 'JavaScript' is actually 'SuiteScript', which is defined as "SuiteScript is a JavaScript-based API that gives developers the ability to extend NetSuite", where NetSuite is a hosted CRM package, so any coding used to encrypt my string would be hidden to everyone, except for employees of my company (so considered safely hidden).</p> <p>What I want to do is:</p> <ol> <li>generate a querystring (e.g. userid=guidValue&amp;firstName=stringValue&amp;company=stringValue&amp;...),</li> <li>encrypt that using a secure method (such as AES256, RSA, whatever someone can suggest that's secure),</li> <li>call a webpage on my C# based website passing this string in the URL (e.g. mysite.com/mypage.aspx?encStr=encryptedString)</li> <li>have that C# page decrypt it, separate the name/value pairs and process them.</li> </ol> <p>I've googled around and search stackoverflow, but not found any articles or answers that provide clear instructions of an encryption method that can be used by both technologies. Does anyone have such instructions?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload