昨天外包安卓的那个人说AES的加解密结果不一样,于是百度搜索发现还真是!
贴上AES加密核心:
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
cipher.init(Cipher.ENCRYPT_MODE, key, zeroIv);
CBC是工作模式,AES一共有电子密码本模式(ECB)、加密分组链接模式(...
分类:
移动开发 时间:
2015-07-23 13:57:19
阅读次数:
148
Trail WalkTime Limit: 2 Seconds Memory Limit: 65536 KBFatMouse is busy organizing the coming trail walk. After the route for the trail walk has bee...
分类:
其他好文 时间:
2015-07-22 18:06:52
阅读次数:
129
RC4相对是速度快、安全性高的加密算法。在实际应用中,我们可以对安全系数要求高的文本进行多重加密,这样破解就有一定困难了。如下测试给出了先用RC4加密,然后再次用BASE64编码,这样双重锁定,保证数据信息安全(个人见解,不周之处请谅解!)。package com.bao.tools.encrypt...
分类:
编程语言 时间:
2015-07-16 21:17:40
阅读次数:
228
function keyED($txt,$encrypt_key) //定义一个keyED { $encrypt_key = md5($encrypt_key); $ctr=0; $tmp = ''; for(...
分类:
Web程序 时间:
2015-07-15 16:33:02
阅读次数:
539
一,首先下载Reveal工具。Reveal的下载地址:http://revealapp.com/download。下载界面如下图所示,选择Download Trail蓝色按钮可以进行下载:二,新建立一个工程,做为Reveal做测试用的Demo.最原始的工程如下图所示:三,打开Reveal软件,如下图...
分类:
其他好文 时间:
2015-07-14 22:05:41
阅读次数:
344
一,首先下载Reveal工具。
Reveal的下载地址:http://revealapp.com/download。
下载界面如下图所示,选择Download Trail蓝色按钮可以进行下载:
二,新建立一个工程,做为Reveal做测试用的Demo.最原始的工程如下图所示:
三,打...
分类:
其他好文 时间:
2015-07-14 20:29:51
阅读次数:
183
encrypt('hankangkang'); echo $encryptContent.'';$decryptContent = $rsa -> decrypt($encryptContent);echo $decryptContent.''; class mycrypt { ...
分类:
Web程序 时间:
2015-07-13 11:37:09
阅读次数:
153
1.Base64 : 26个英文字母大小写+10个阿拉伯数字+“+ =” 一共64个; 2.3DES: public static byte[] encrypt(byte[] key,byte[] data){ SecretKey secretKey=new SecretKeyS...
分类:
其他好文 时间:
2015-07-09 19:19:42
阅读次数:
143
给物体加了个trail renderer,使用了Legacy Shaders/Transparent/Diffuse,并将颜色调成白色半透明。在编辑器里效果是对的,但在ios上真机测试变成黑色的。然后看TrailRenderer的文档(http://docs.unity3d.com/Manual/c...
分类:
移动开发 时间:
2015-07-05 07:07:51
阅读次数:
504
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Infrastructure.Util{ public class Encrypt { ...
分类:
其他好文 时间:
2015-07-03 20:39:26
阅读次数:
113