- 授权协议: Apache
- 开发语言: Java
- 操作系统: 跨平台
- 软件首页: http://commons.apache.org/proper/commons-crypto/
- 软件文档: http://commons.apache.org/proper/commons-crypto/userguide.html
软件介绍
Apache Commons Crypto 是一个加密库,使用 AES-NI (Advanced Encryption Standard New Instructions) 进行优化。提供了加密级别和流级别的 API。开发者可以使用最少代码来实现高性能的 AES 加解密应用。
Maven:
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-crypto</artifactId> <version>1.0.0</version> </dependency>
示例代码:
Properties properties = new Properties(); //Creates a CryptoCipher instance with the transformation and properties. CryptoCipher cipher = Utils.getCipherInstance(CipherTransformation.AES_CTR_NOPADDING, properties); String input = "hello world!"; int inputOffset = 0; int inputLen = input.length(); byte[] output = new byte[1024]; int outputOffset = 0; //Initializes the cipher with ENCRYPT_MODE, key and iv. cipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key,"AES"), new IvParameterSpec(iv)); //Continues a multiple-part encryption/decryption operation for byte array. cipher.update(input.getBytes("UTF-8"), inputOffset, inputLen, output, outputOffset); //We should call do final at the end of encryption/decryption. cipher.doFinal(inBuffer, outBuffer); //Closes the cipher. cipher.close();
PHP for the World Wide Web, Second Edition (Visual QuickStart Gu
Larry Ullman / Peachpit Press / 2004-02-02 / USD 29.99
So you know HTML, even JavaScript, but the idea of learning an actual programming language like PHP terrifies you? Well, stop quaking and get going with this easy task-based guide! Aimed at beginning ......一起来看看 《PHP for the World Wide Web, Second Edition (Visual QuickStart Gu》 这本书的介绍吧!
RGB转16进制工具
RGB HEX 互转工具
RGB CMYK 转换工具
RGB CMYK 互转工具