how to protect the code with password and image comparison?

I am looking for two layers of security.
My .m-file should be password protected. Upon attempting to open the file, the user should be prompted for a password. Only if the password is correct, should a picture of the user be taken by a camera. This picture should then be compared to pictures in a database. If there is a match, the user is allowed to open, see and use the code. In summary, I need:
A way to password encrypt my .m-file. A way to handle a database of images. A way to initiate a picture taken by a camera on the computer. A way to compare the new picture with the pictures in the database.
I have only two days left for the submission of my final year project, and its a part of my final year project. kindly, somebody plz help me.. :)

Risposte (1)

Zip up your source code with WinZip and specify a password. They'll only be able to see the source code if you enter the correct password.

4 Commenti

well, i already knew this thing, i don't have to do this thing. i've to do this thing in matlab, not using winzip or anything like that.
Why?
You can compile the m-file so they can't see it. Or you can use pcode(). Those are your only MATLAB-only options that I'm aware of. But the executable or p-file cannot be converted back into m-files. So if you don't want to ship your plain text m-files, but you need a way for your trusted users to obtain them when you're not around, then you'll need a third party encryption/decryption utility, such as WinZip. Or maybe there's such a utility in the File Exchange that mimics Winzip's encryption capability.
okay.. if there's sny such utility that mimics winzip's encryption capability, and if u've any idea of it, do let me know :)
I get the feeling you didn't search the File Exchange, like I suggested, or you wouldn't have said that. Please click this for encryption files and click this for password files. If I've answered the question, please officially mark as "Accepted".

Accedi per commentare.

Categorie

Richiesto:

il 14 Giu 2014

Commentato:

il 17 Giu 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by