I want to use C # to make my MS Access file (.mdb) readable / unreadable based on the key I am I want to do this without the use of any third party tools. How can I do this?
You only need everything:
It uses DESEncryption, and you need to setup IV (initial vector) for whatever you want, as long as it always remains the same, and the key (your password) can be only 8 bytes long .
To convert a string to byte, you can use
System.Text.UTF8Encoding = new System.Text.UTF8Encoding (); Byte [] bkey = ue.GetBytes (key); I will leave you to make it 8 bytes long.
Anywhere you want to store (like other files) Whether the MDB file is currently encrypted, because you do not want to end it encrypting multiple times ... in that case Getting back can be quite difficult.
Comments
Post a Comment