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

John D'Errico
John D'Errico 2022년 11월 27일
.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 2022년 11월 30일
Thank you! very good suggestions

댓글을 달려면 로그인하십시오.

 채택된 답변

추가 답변 (1개)

David Leffingwell
David Leffingwell 2023년 6월 12일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 Encryption / Cryptography에 대해 자세히 알아보기

제품

릴리스

R2022b

태그

질문:

2022년 11월 27일

답변:

2023년 6월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by