• 大小: 483KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-09
  • 语言: 其他
  • 标签: 图像加密  

资源简介

亲测亲测可用,用自定义序列对图像进行加密,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

评论

共有 条评论

相关资源