Password protect mat files

43 vues (au cours des 30 derniers jours)
Mario Trevino
Mario Trevino le 27 Nov 2022
Hi there everybody, Im writing an application and I would like to password protect the generated mat files... is there an easy way to do this?
hopefully you can give me some hints...
thanks in advance
  2 commentaires
John D'Errico
John D'Errico le 27 Nov 2022
.mat files don't have the option for password protection. You could encrypt them I suppose, making them unusable as .mat files without the reverse operation. But then you would need to have your code protected and made unreadable too.
Perhaps better could be to write your own files, encrypted in your own proprietary format so they would be unreadable, at least not without the correct code. Then use pcode to protect the reading tools, so the reader cannot be used by others. It will be tough to do, since even pcode can apparently be hacked by the determined hacker.
Or you might store the files in a secure location in the cloud, inaccessible without the proper permissions.
Mario Trevino
Mario Trevino le 30 Nov 2022
Thank you! very good suggestions

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 27 Nov 2022
  1 commentaire
Mario Trevino
Mario Trevino le 30 Nov 2022
Thank you Walter

Connectez-vous pour commenter.

Plus de réponses (1)

David Leffingwell
David Leffingwell le 12 Juin 2023
If you are using the MATLAB Compiler, you can use the -s option to encrypt your data (e.g. MAT files) in addition to your M files. See here.

Catégories

En savoir plus sur Low-Level File I/O dans Help Center et File Exchange

Tags

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by