How to create a password protected zip file using matlab?
Show older comments
Query is on : create a password protected zip file using matlab
I already used as below:
7z a archive.7z -psecret *.mat
But I am getting error: Error: Unexpected MATLAB expression. (Used Matlab R2017b)
2 Comments
David Hill
on 6 Jun 2020
Recommend encrypting file before zipping.
Partha Mitra
on 6 Jun 2020
Answers (1)
Walter Roberson
on 6 Jun 2020
! 7z a archive.7z -psecret *.mat
or
system('7z a archive.7z -psecret *.mat')
4 Comments
Partha Mitra
on 7 Jun 2020
Partha Mitra
on 7 Jun 2020
Partha Mitra
on 7 Jun 2020
Walter Roberson
on 7 Jun 2020
Using an exact path like you did is often a good idea for reliability... on any one system... but unfortunately not always portable.
Categories
Find more on Encryption / Cryptography in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!