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

📄 encrypt.h

📁 对txt文件进行加密解密
💻 H
字号:
/*
 * File:   encrypt.h
 * Date:   8 May 1999
 * Author: Bret Taylor (bstaylor@stanford.edu)
 * -------------------------------------------
 * A library for simple, textual encryption and decryption
 * procedures based on a 1-byte (8-bit) key.
 */

#ifndef _encrypt_h_
#define _encrypt_h_

#include <stdio.h>


/*
 * Function: EncodeFile
 * --------------------
 * Given the 1-byte key, thsi function will read all of the contents
 * of textFile and write the newly encrypted version to outputFile.
 */
void EncodeFile(FILE *textFile, FILE *outputFile, unsigned char key);


/*
 * Function: DecodeFile
 * --------------------
 * Given the 1-byte key, this function will read all of the contents
 * of encodedFile and write the the decrypted version to outputFile.
 */
void DecodeFile(FILE *encodedFile, FILE *outputFile, unsigned char key);


#endif

⌨️ 快捷键说明

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