How to decrypt a .mat file ?

조회 수: 22 (최근 30일)
Chidiebere Ike
Chidiebere Ike 2018년 10월 23일
댓글: MOUSSAOUI FAOUZI 2021년 12월 31일
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