1 简介
由于混沌序列具有容易生成,对初始条件和混沌参数敏感等特点,近年来在图像加密领域得到了广泛的应用.因此可以借助Matlab编程语言,编写适当的算法将信息进行加解密,实现对秘密消息的加密保护.
2 部分代码
function varargout = ChaosEncrypt(varargin)% CHAOSENCRYPT MATLAB code for ChaosEncrypt.fig% CHAOSENCRYPT, by itself, creates a new CHAOSENCRYPT or raises the existing% singleton*.%% H = CHAOSENCRYPT returns the handle to a new CHAOSENCRYPT or the handle to% the existing singleton*.%% CHAOSENCRYPT('CALLBACK',hObject,eventData,handles,...) calls the local% function named CALLBACK in CHAOSENCRYPT.M with the given input arguments.%% CHAOSENCRYPT('Property','Value',...) creates a new CHAOSENCRYPT or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before ChaosEncrypt_OpeningFcn gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to ChaosEncrypt_OpeningFcn via varargin.%% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one% instance to run (singleton)".%% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help ChaosEncrypt% Last Modified by GUIDE v2.5 25-Feb-2022 23:21:04% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @ChaosEncrypt_OpeningFcn, ...'gui_OutputFcn', @ChaosEncrypt_OutputFcn, ...'gui_LayoutFcn', [] , ...'gui_Callback', []);if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% --- Executes just before ChaosEncrypt is made visible.function ChaosEncrypt_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% varargin command line arguments to ChaosEncrypt (see VARARGIN)
3 仿真结果



4 参考文献
[1]李梅, 李佳酿, 陈飞翔. 基于混沌序列图像加密技术的Matlab实现[J]. 建筑工程技术与设计, 2015(27).
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
本文介绍了一种基于混沌序列的图像加密方法,并通过Matlab实现了该加密技术。利用混沌序列易于生成且对初始条件敏感的特点,文章详细展示了如何利用Matlab进行图像的加解密过程。
883

被折叠的 条评论
为什么被折叠?



