⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 encrypt.m

📁 有趣的可视的数值方法 出自网站http://www.mathworks.com/moler
💻 M
字号:
function encrypt(filein,fileout)%ENCRYPT  Apply the CRYPTO function to a text file.%  ENCRYPT %      with no arguments prompts for a input file name.%  ENCRYPT inputfilename%      encrypts the text in the input file and displays the results.%  ENCRYPT inputfilename outputfilename%      stores the encrypted text in the output file.% See also CRYPTO.if nargin < 1   filein = input('Input file = ','s');endfin = fopen(filein);if nargin == 2   fout = fopen(fileout,'w');else   fout = 1;endwhile ~feof(fin)   s = fgetl(fin);   t = crypto(s);   fprintf(fout,'%s\n',t);endfclose all;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -