How to decrypt a .mat file ?

19 次查看(过去 30 天)
Hi,
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 ?
Thanks
  8 个评论
Chidiebere Ike
Chidiebere Ike 2018-10-23
Thanks Rik. I appreciate
MOUSSAOUI FAOUZI
MOUSSAOUI FAOUZI 2021-12-31
Hello, all my Matlab files have been encrypted by ransomware online. Is there a way to recover and decrypt Matlab files? Thank you. moussaoui39fa@gmail.com

请先登录,再进行评论。

采纳的回答

John D'Errico
John D'Errico 2018-10-23
编辑:John D'Errico 2018-10-23
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.
  44 个评论
Walter Roberson
Walter Roberson 2018-10-27
You have
for i = 1:numel(midres)
features = collect(conf, {midres{i}}, conf.upsample_factor, conf.filters);
features = double(features);
end
You do not output features anywhere, so there would not appear to be any point in calculating them.
You are overwriting all of the variable features each round of the loop.
Chidiebere Ike
Chidiebere Ike 2018-10-27
编辑:Chidiebere Ike 2018-10-27
The attachment I made was what I did so far.
Please please guide me through this sir to achieve this. I wish to compare this Demo_LANR_NLM method alongside other methods with my proposed method and will be good to have DEMO_LANR_NLM in function file like I had others such as BICUBIC, Global Regressor, ANR, LANR etc on "methods" folder.
What I always do is to run the Demo_LANR_NLM code separately to obtain its PSNR and SSIM values and images quality… And run my proposed code separately as well to compare both.
So I felt it will be better to run all at once in my code. Just like the Demo_LANR_NLM code had bicubic, ScSR, ANR, GR and LANR etc in its list of the methods to be compared.
Thats all.
Guide me sir

请先登录,再进行评论。

更多回答(1 个)

Walter Roberson
Walter Roberson 2018-10-23
https://www.mathworks.com/matlabcentral/answers/15521-matlab-function-save-and-v7-3
Mat files are not encrypted. They are data files, many of the entries are compressed. See the link for Malcolm's utilities.
  2 个评论
Fangjun Jiang
Fangjun Jiang 2018-10-23
The OP's question and comments are misleading. They sounded complicated but it turned out to be not knowing a simple command. Now the Q&A are completely off topic.
Chidiebere Ike
Chidiebere Ike 2018-10-23
编辑:Chidiebere Ike 2018-10-23
I am sorry about that Jiang. My first issue has been solved. Then I presented another here. Here is the link https://www.mathworks.com/matlabcentral/answers/425033-how-do-i-solve-this-error-index-exceeds-matrix-dimensions#comment_625175..
Any contribution will be appreciated.
Thank you so much

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by