I have created hidden form and it will be contain hidden input and javascript submit. But while form is submitted, user can view the source of page and will know all values of it. How can I hide this form or encrypt it so that user can not know values from even source of html.
Share
You could encrypt the data (using standard strong encryption) on the server and store the result in the form.
Standard practise, however, is to not give sensitive data to the client in the first place. Store the data on the server, associate it with a token, then give that token to the client.
Sessions are the standard approach for doing that.