title: Is there any possibility to secure data only using JavaScript?
body: <p>Is there any possibility to secure data only using JavaScript?</p>
  
  <p>User has a token sent between browser and API. This is ok, but I send also additional data without token (I don't want to generate token each time). This happens automatically using JavaScript.
  Unfortunately the user can get token and change data from outside the token (I send token + data that is different for each request, so the user can change the different data) and next send request by for example PostMan.</p>
  
  <p>If it was on the server side, I could generate a hash with this data and salt, but if I do it in JavaScript itself, everyone can see how hash is generated and what is the salt.</p>