Last post Jul 18, 2011 05:51 AM by raduenuca
Jul 18, 2011 05:23 AM|walia_jagwinder|LINK
I have to implement encryption and decryption in MVC 3.
Requirement is , First user will upload file,folder etc. then it will be displayed on screen. Now user can select the file or folder to encrypt or decrypt with a key (password).
How this functionality can be implemented? Any suggestion or help?
Jul 18, 2011 05:44 AM|ignatandrei|LINK
Jul 18, 2011 05:51 AM|raduenuca|LINK
You should implement a static class that performs the encryption/decryption first:
Then from the view just pass the Id of the file to be encrypted/decrypted (assuming the file is saved on the database/disk you'll have to identify the path on the server based on the ID or load it from database) and the password.