技巧驱动
科技创新

引力搜刮算法word

1.怎样用哈希算法检查word文档

Hash,普通翻译做“散列”,也有直接音译为"哈希"的,就是把随便任性长度的输入(又叫做预映照, pre-image),经过过程散列算法,变换成固定长度的输入,该输入就是散列值。

这类转换是一种紧缩映照,也就是,散列值的空间平日远小于输入的空间,不合的输入能够会散列成雷同的输入,而弗成能从散列值来唯一实在其实定输入值。 暗码学上的 Hash 又被称为"消息摘要(message digest)。

MD5 和 SHA1 可以说是今朝应用最广泛的Hash算法,而它们都是以 MD4 为基本设计的。参考照应RFC文档可以取得MD4(RFC 1320)、MD5(RFC 1321)算法的详细描述和算法的C源代码。

下面是SHA1算法的完成:/* * sha1.h * * Copyright (C) 1998, 2009 * Paul E. Jones * All Rights Reserved * ***************************************************************************** * $Id: sha1.h 12 2009-06-22 19:34:25Z paulej $ ***************************************************************************** * * Description: * This class implements the Secure Hashing Standard as defined * in FIPS PUB 180-1 published April 17, 1995. * * Many of the variable names in the SHA1Context, especially the * single character names, were used because those were the names * used in the publication. * * Please read the file sha1.c for more information. * */#ifndef _SHA1_H_#define _SHA1_H_/* * This structure will hold context information for the hashing * operation */typedef struct SHA1Context{ unsigned Message_Digest[5]; /* Message Digest (output) */ unsigned Length_Low; /* Message length in bits */ unsigned Length_High; /* Message length in bits */ unsigned char Message_Block[64]; /* 512-bit message blocks */ int Message_Block_Index; /* Index into message block array */ int Computed; /* Is the digest computed? */ int Corrupted; /* Is the message digest corruped? */} SHA1Context;/* * Function Prototypes */void SHA1Reset(SHA1Context *);int SHA1Result(SHA1Context *);void SHA1Input( SHA1Context *, const unsigned char *, unsigned);#endif/* * sha1.c * * Copyright (C) 1998, 2009 * Paul E. Jones * All Rights Reserved * ***************************************************************************** * $Id: sha1.c 12 2009-06-22 19:34:25Z paulej $ ***************************************************************************** * * Description: * This file implements the Secure Hashing Standard as defined * in FIPS PUB 180-1 published April 17, 1995. * * The Secure Hashing Standard, which uses the Secure Hashing * Algorithm (SHA), produces a 160-bit message digest for a * given data stream. In theory, it is highly improbable that * two messages will produce the same message digest. Therefore, * this algorithm can serve as a means of providing a "fingerprint" * for a message. * * Portability Issues: * SHA-1 is defined in terms of 32-bit "words". This code was * written with the expectation that the processor has at least * a 32-bit machine word size. If the machine word size is larger, * the code should still function properly. One caveat to that * is that the input functions taking characters and character * arrays assume that only 8 bits of information are stored in each * character. * * Caveats: * SHA-1 is designed to work with messages less than 2^64 bits * long. Although SHA-1 allows a message digest to be generated for * messages of any number of bits less than 2^64, this * implementation only works with messages with a length that is a * multiple of the size of an 8-bit character. * */#include "sha1.h"/* * Define the circular shift macro */#define SHA1CircularShift(bits,word) \ ((((word) > (32-(bits))))/* Function prototypes */void SHA1ProcessMessageBlock(SHA1Context *);void SHA1PadMessage(SHA1Context *);/* * SHA1Reset * * Description: * This function will initialize the SHA1Context in preparation * for computing a new message digest. *。

2.word计算器怎样计算

步调:

1、翻开Word后,点击开端标签,在弹出菜单当选择“ 选项” 菜单项。

2、在翻开的Word选项窗口中,点击左边的“ 自定义功能区 ”侧边栏。

3、这时候在右边的“ 从下各地位选择敕令 ”下拉菜单当选择“ 不在功能区的敕令 ”菜单项。

4、在右边窗口的下方点击“ 新建选项卡” 按钮。

5、在新建选项卡上点击右键,在弹出菜单当选择“ 重定名 ”菜单项。

6、在弹出窗口中给新建选项卡重定名,例如:计算器。

7、在左边找到“ 计算 ”菜单项,然后点击“ 添加 ”按钮,把其添加到方才建立的“ 计算器” 选项卡下。

8、今后再在Word中输入须要计算的等式时,选中方才输入的等式,然后点击“ 计算器 ”标签,点击对象栏上的“ 对象计算 ”按钮,这时候成果会保存到剪贴板上,我们直接粘贴到成果的地位 便可以了

3.word文档加密算法

给Word文档加密重要有以下几个办法:

文件加密文件菜单设置:1、翻开须要加密的Word文档。2、选“文件”的“另存为”,出现“另存为”对话框,在“对象”当选“惯例选项”,出现“保存”选项卡。3、分别在“翻开权限暗码”和“修改权限暗码”中输入暗码(这两种暗码可以雷同也能够不合)。4、再次确认“翻开权限暗码”和“修改权限暗码”。按“肯定”加入“保存”选项卡。5、文件存盘。

对象菜单设置:1、翻开须要加密的Word文档。2、选“对象”菜单的“选项”敕令,出现“选项对话框”。3、在“选项”对话框当选“保存”选项卡。4、分别在“翻开权限暗码”和“修改权限暗码”中输入暗码,点“肯定”加入。5、将文件保存。

转载请注明出处51数据库 » 引力搜刮算法word