How to decrypt a .mat file ?
20 visualizaciones (últimos 30 días)
Chidiebere Ike el 23 de Oct. de 2018
Is there any way to go about this? I need an information on how to decrypt a given .mat file named "conf.mat" ?
I have to use this configuration file and make changes on its loaded parameters to suite my work.
Is there anyway this can be decrypted ?
John D'Errico el 23 de Oct. de 2018
Editada: John D'Errico el 23 de Oct. de 2018
I believe the complete file specs for a .mat file are not published outside of The MathWorks. That means if you want to fully "decrypt" a .mat file, then change a variable, and save it back out, you have one good option - get a job at The MathWorks.
Of course even then, you still have a problem. Since the .mat files have changed format at times over the years with release changes, anything you did would be potentially version specific, and might not work with a different release.
So the only reliable solution to your problem is to not solve it as you wish. Instead, use load. Load the file, then modify the variables in question, and finally save it back out. This solution is easy and incredibly fast to implement, instead of the complex approach you seem to want to follow.
As far as your comment that you tried it, but not all content was shown, just means you may not understand how to properly use load, or perhaps are not using MATLAB properly. So it is difficult to help you there without seeing what confused you and what you indeed did try.
Más respuestas (1)
Walter Roberson el 23 de Oct. de 2018
Mat files are not encrypted. They are data files, many of the entries are compressed. See the link for Malcolm's utilities.