linux下完成任意文件的AES加密. 口令可变,加密稳定迅速.

源代码在线查看: password.h

软件大小: 24 K
上传用户: wuseyue
关键词: linux AES 加密
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*				 * password.h				 *				 * This software is licensed as "freeware."  Permission to distribute				 * this software in source and binary forms is hereby granted without a				 * fee.  THIS SOFTWARE IS PROVIDED 'AS IS' AND WITHOUT ANY EXPRESSED OR				 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED				 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.				 * THE AUTHOR SHALL NOT BE HELD LIABLE FOR ANY DAMAGES RESULTING FROM				 * THE USE OF THIS SOFTWARE, EITHER DIRECTLY OR INDIRECTLY, INCLUDING,				 * BUT NOT LIMITED TO, LOSS OF DATA OR DATA BEING RENDERED INACCURATE.				 *				 */								#ifndef __AESCRYPT_PASSWORD_H__				#define __AESCRYPT_PASSWORD_H__								#define MAX_PASSWD_LEN  1024								typedef enum {UNINIT, DEC, ENC} encryptmode_t;								/*				 * Error codes for read_password function.				 */				#define AESCRYPT_READPWD_FOPEN       -1				#define AESCRYPT_READPWD_FILENO      -2				#define AESCRYPT_READPWD_TCGETATTR   -3				#define AESCRYPT_READPWD_TCSETATTR   -4				#define AESCRYPT_READPWD_FGETC       -5				#define AESCRYPT_READPWD_TOOLONG     -6				#define AESCRYPT_READPWD_NOMATCH     -7								#endif // __AESCRYPT_PASSWORD_H__							

相关资源