Description: Rijndael (pronounced Reindaal) AES算法,由Joan Daemen and Vincent Rijmen设计。-//Rijndael (pronounced Reindaal) is a block cipher, designed by Joan Daemen and Vincent Rijmen as a candidate algorithm for the AES.
//The cipher has a variable block length and key length. The authors currently specify how to use keys with a length
//of 128, 192, or 256 bits to encrypt blocks with al length of 128, 192 or 256 bits (all nine combinations of
//key length and block length are possible). Both block length and key length can be extended very easily to
// multiples of 32 bits.
//Rijndael can be implemented very efficiently on a wide range of processors and in hardware.
//This implementation is based on the Java Implementation used with the Cryptix toolkit found at:
//http://www.esat.kuleuven.ac.be/~rijmen/rijndael/rijndael.zip
//Java code authors: Raif S. Naffah, Paulo S. L. M. Barreto
//This Implementation was tested against KAT test published by the authors of the method and the
//results were identical. Platform: |
Size: 23552 |
Author:doofu |
Hits:
Description: 实习二 分组密码加密
一、实习目的
1、理解对称加密算法的原理,熟悉常用的对称加密算法:DES、TripleDES、Blowfish;
2、以DESede加密算法为例,掌握分组加密算法加、解密过程的实现。
二、实习内容
1.[基本要求]
以DES/DESede为例,利用java中的相关类实现对指定字符串的加、解密。
2.[实现提示]
(1) 可以利用java中的KeyGenerator类创建对称秘钥,利用工厂类KeyGenerator的静态方法getInstance()获得KeyGenerator()类对象;
(2) 方法getInstance()的参数为字符串类型,指定加密算法的名称如:Blowfish、DES、DESede、HmacMD5或HmacSHA1等;
(3) 利用工厂类Cipher的对象可以创建密码器。同样的,getInstance()的参数为字符串类型,指定加密算法的名称
-Internship two block cipher encryption
An internship purpose
An understanding of the principles of symmetric encryption algorithms, symmetric encryption algorithms used are familiar: DES, TripleDES, Blowfish
2, DESede encryption algorithm, for example, plus master block encryption algorithm to achieve decryption process.
Second, the practical content
1. [Basic requirements]
With DES/DESede for example, the use of java in the relevant class implements the specified string encryption and decryption.
2. [Achieve prompt]
(1) can be used to create a java class in KeyGenerator symmetric secret key, use the static method getInstance factory class KeyGenerator of () to get KeyGenerator () class object
(2) the method getInstance () argument is a string type, specify the name of the encryption algorithm, such as: Blowfish, DES, DESede, HmacMD5 or HmacSHA1 etc.
(3) the use of factory class Cipher objects can create a password control. The same, getInstance () argument is a string typ Platform: |
Size: 3072 |
Author:杨平 |
Hits: