function varargout = process_encrypt(varargin)
% PROCESS_ENCRYPT M-file for process_encrypt.fig
% PROCESS_ENCRYPT, by itself, creates a new PROCESS_ENCRYPT or raises the existing
% singleton*.
%
% H = PROCESS_ENCRYPT returns the handle to a new PROCESS_ENCRYPT or the handle to
% the existing singleton*.
%
% PROCESS_ENCRYPT('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in PROCESS_ENCRYPT.M with the given input arguments.
%
% PROCESS_ENCRYPT('Property','Value',...) creates a new PROCESS_ENCRYPT or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before process_encrypt_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to process_encrypt_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 process_encrypt
% Last Modified by GUIDE v2.5 13-Oct-2011 21:12:21
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @process_encrypt_OpeningFcn, ...
'gui_OutputFcn', @process_encrypt_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before process_encrypt is made visible.
function process_encrypt_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 process_encrypt (see VARARGIN)
% Choose default command line output for process_encrypt
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes process_encrypt wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = process_encrypt_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
% --- Executes on button press in encryptFile.
function encryptFile_Callback(hObject, eventdata, handles)
global fname
global filename
global i
fid=fopen(fname,'r');
key= fscanf(fid, '%d');
if(i==1)
[y,Fs]=wavread(filename);
else
[y,Fs]=wavread('Original.wav');
end
wait
encrypt
save var_save encdata w inv_s_box inv_poly_mat sizee no_one
wavwrite(subtr,8000,'Encrypted.wav');
disp_enc
close(wait)
% encrypt
% hObject handle to encryptFile (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in exit.
function exit_Callback(hObject, eventdata, handles)
close(process_encrypt)
voice_Encryption
% hObject handle to exit (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in chose.
function chose_Callback(hObject, eventdata, handles)
global fname
[fname,pathname] = uigetfile('*.txt','Select a key file ....');
set(handles.display_chose,'string',fname);
% hObject handle to chose (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% str2double(get(hObject,'String')) returns contents of display_chose as a double
% --- Executes during object creation, after setting all properties.
function display_chose_CreateFcn(hObject, eventdata, handles)
% hObject handle to display_chose (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in add.
function add_Callback(hObject, eventdata, handles)
AddDatabase
set(handles.display,'string','voice loaded');
% hObject handle to add (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in remov.
function remov_Callback(hObject, eventdata, handles)
set(handles.display,'string','your Database is empty');
% hObject handle to remov (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on selection change in display.
function display_Callback(hObject, eventdata, handles)
% hObject handle to display (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: contents = get(hObject,'String') returns display contents as cell array
% contents{get(hObject,'Value')} returns selected item from display
% --- Executes during object creation, after setting all properties.
function display_CreateFcn(hObject, eventdata, handles)
% hObject handle to display (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: popupmenu controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes during object creation, after setting all properties.
% --- Executes during object creation, after setting all properties.
function dis_CreateFcn(hObject, eventdata, handles)
% hObject handle to dis (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
AESLAT2.zip_AES_Image Encryption_The Image_aes image
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
标题 "AESLAT2.zip_AES_Image Encryption_The Image_aes image" 暗示了这是一个关于使用AES(Advanced Encryption Standard)加密算法对图像进行加密封装的项目。AES是一种广泛使用的块密码,它在信息安全领域中扮演着核心角色,特别是在数据加密、网络安全以及存储保护等方面。 描述中的"Classic image encryption algorithm, AES, part of the code. Can run" 提到这是一个经典的图像加密算法,使用了AES,并且包含可运行的代码。这意味着这个压缩包可能包含了用某种编程语言实现的AES加密算法,用于对图像数据进行处理。这种类型的项目通常会涉及将图像数据转换为适合加密的形式,然后应用AES的加密步骤,最后可能还有解密和图像还原的过程。 在标签 "aes image_encryption the_image aes__image" 中,我们可以进一步理解这个项目是关于AES算法在图像加密上的应用。"the_image"和"aes_image"可能是代码中用来表示加密前后的图像变量或者特定的处理步骤。 在压缩包内的文件 "AESLAT2" 可能是源代码文件,可能是用C++、Python、Java等编程语言编写的,实现了一个或多个与AES图像加密相关的函数或类。这个文件可能包含了加密和解密的核心逻辑,以及可能的辅助功能,如读取和写入图像文件,错误处理等。 AES图像加密的工作原理通常包括以下步骤: 1. **预处理**:图像通常以像素矩阵的形式表示,需要将其转换为适合AES的二进制数据流。 2. **密钥生成**:AES算法需要一个密钥,这个密钥的长度可以是128位、192位或256位。密钥生成过程可能涉及到用户输入或者随机生成。 3. **初始化向量(IV)**:在某些模式下,如CBC(Cipher Block Chaining)模式,需要一个初始化向量来增加加密的复杂性。 4. **分块**:由于AES加密操作是在固定大小的块上进行(通常是128位),图像数据可能需要被分成这些块。 5. **AES加密**:每个数据块通过AES的多个轮操作进行加密,包括字节替换、行移位、列混淆和轮密钥加。 6. **后处理**:加密后的数据块组合成加密图像的二进制流,可能需要转化为特定格式以保存。 7. **解密过程**:解密过程与加密相反,使用相同的密钥和IV,但操作顺序相反。 这个项目可能提供了从头到尾实现这一过程的机会,开发者或学习者可以通过运行代码来了解AES图像加密的实际效果,也可以对代码进行修改以研究不同的加密参数或方法对图像安全性和视觉效果的影响。 这个项目是一个实用的学习资源,它让学习者能够深入理解AES加密算法及其在图像数据保护中的应用,同时也提供了实践经验,可以实际操作并观察加密图像的结果。
- 1
- #完美解决问题
- #运行顺畅
- #内容详尽
- #全网独家
- #注释完整
- 粉丝: 99
- 资源: 1万+
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Xshell,Xftp打包一起下载;5.0版本
- Springboot017学生读书笔记共享.zip
- c#DocX-源码+demo 包含Xceed.Document.NET.dll Xceed.Words.NET.dll 亲测有效,资料详细全面
- PD20W正标规格书,低成本
- springboot299基于Java的家政服务平台的设计与实现.zip
- Python小白办公自动化实用高薪课
- springboot295基于Mysql的商业辅助决策系统的设计与实现.zip
- springboot297毕业生实习与就业管理系统的设计与实现.zip
- springboot296基于个性化定制的智慧校园管理系统设计与开发.zip
- springboot298计算机学院校友网.zip
- Sublime Text 4 安装+激活两件套
- 支持ftp、sftp等软件
- 工业领域数据安全风险排查与防范指南(2024版)
- YT9215SC SDK
- c#实现在word文档指定地方插入图片,或修改word,word转PDF功能,亲测有效
- Monsters Ultimate Pack 07 Cute Series-v1.0