資源簡介
親測親測可用,用自定義序列對圖像進行加密,logic加密 可用,用自定義序列對圖像進行加密,logic加密
代碼片段和文件信息
ptr11=imread(‘E:\比賽項目\隱寫項目\隱寫\云端隱寫\src\4.jpg‘);
ptr22=imread(‘E:\比賽項目\隱寫項目\隱寫\云端隱寫\src\5.jpg‘);
mingwen1=fopen(‘E:\比賽項目\隱寫項目\隱寫\云端隱寫\mingwen1.txt‘);
mingwen2=fopen(‘E:\比賽項目\隱寫項目\隱寫\云端隱寫\mingwen2.txt‘);
ptr1=ptr11;
ptr2=ptr22;
%-----------------------進行第一次加密
%------------------------明文處理
data1=textscan(mingwen1‘%s‘‘delimiter‘‘\n‘);
fclose(mingwen1);
data2=textscan(mingwen2‘%s‘‘delimiter‘‘\n‘);
fclose(mingwen2);
data1=data1{11};
data2=data2{11};
?txt1=cell2mat(data1);%將cell型轉為char型
?txt2=cell2mat(data2);%將cell型轉為char型
?lmw1=length(txt1);
?lmw2=length(txt2);
?lptr1=length(ptr1);
?lptr2=length(ptr2);
?txt1h=dec2bin(txt1(:)16);
?txt2h=dec2bin(txt2(:)16);
?txt1h=uint8(txt1h)-48;
?txt2h=uint8(txt2h)-48;
?lmw1h=dec2bin(lmw1(:)16);
?lmw2h=dec2bin(lmw2(:)16);
?%---------------------獲取混沌序
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-02-26?18:08??image-encryption-master\
?????文件????????1260??2017-02-26?18:08??image-encryption-master\MLNCML序列.txt
?????文件????????4864??2017-02-26?18:08??image-encryption-master\in.m
?????文件???????66614??2017-02-26?18:08??image-encryption-master\jmyxh.bmp
?????文件???????66614??2017-02-26?18:08??image-encryption-master\jmyxh1.bmp
?????文件???????66614??2017-02-26?18:08??image-encryption-master\jmyxh2.bmp
?????文件??????????24??2017-02-26?18:08??image-encryption-master\mingwen1.txt
?????文件??????????24??2017-02-26?18:08??image-encryption-master\mingwen2.txt
?????文件????????3872??2017-02-26?18:08??image-encryption-master\out.m
?????目錄???????????0??2017-02-26?18:08??image-encryption-master\src\
?????文件???????35559??2017-02-26?18:08??image-encryption-master\src\1.bmp
?????文件????????6280??2017-02-26?18:08??image-encryption-master\src\2.bmp
?????文件????????8526??2017-02-26?18:08??image-encryption-master\src\3.jpg
?????文件????????8887??2017-02-26?18:08??image-encryption-master\src\4.jpg
?????文件????????6353??2017-02-26?18:08??image-encryption-master\src\5.jpg
?????文件???????10640??2017-02-26?18:08??image-encryption-master\src\hat.jpg
?????文件????????8196??2017-02-26?18:08??image-encryption-master\src\u=109191113431604520&fm=21&gp=0.jpg
?????文件????????5602??2017-02-26?18:08??image-encryption-master\src\u=3642910853522107023&fm=21&gp=0.jpg
?????文件???????66614??2017-02-26?18:08??image-encryption-master\yxh1.bmp
?????文件???????66614??2017-02-26?18:08??image-encryption-master\yxh2.bmp
?????文件???????66614??2017-02-26?18:08??image-encryption-master\zltu1.bmp
?????文件???????66614??2017-02-26?18:08??image-encryption-master\zltu2.bmp
- 上一篇:單片機AD、DA轉換仿真及調試程序
- 下一篇:tc275資源介紹
評論
共有 條評論