Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Encrypt Form Fields Without Intercepting Form Submit in Javascript.

$
0
0

Is their a clean way to encrypt all form fields or just some of the string fields without having to use Javascript.  A simple example would be the default example with Login Capability. The first Login Acton doesnt pass in a model to the view.  It takes the password field and then sends it to the controller and the loginviewmodel displays the clear password.  I would expect the password field to be encrypted and then in the controlller i call decrypt or unprotect etc.

I am currently looking at the IDataProtector Api.  - I am not sure if that will work for what I am wanting.  

Maybe custom TagHelper Implementation / HtmlHelper.  and custom PasswordFor that maybe uses the IDataProtector Interface...  

What do you guys think?

Any advice would be much appreciated:

Regards,

B


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>