加密:HEX(AES_ENCRYPT('123', 'andy'))解密:AES_DECRYPT(UNHEX('CED4D1B547C01B4475426D8A7D3314C8'),'andy')其中:'andy'是密钥。
分类:
数据库 时间:
2014-07-19 17:28:47
阅读次数:
273
JNIEXPORTjintJNICALLJava_com_encrypt_EncryptActivity_cputExtra(JNIEnv*env,jobject,jobjectmContext,jstringactionName,jobjectArraykey,jobjectArrayvalue){//找到Intent类jclassintentClass=env->FindClass("android/content/Intent");if(intentClass==0){return0;}jo..
分类:
其他好文 时间:
2014-07-10 19:15:10
阅读次数:
601
Java Cookie cookie = new Cookie(COOKIE_NAME, encrypt_cookieV); cookie.setMaxAge(60 * 60); cookie.setPath("/"); response.addCookie(cookie);PHP setcoo.....
分类:
编程语言 时间:
2014-07-07 10:09:33
阅读次数:
210
PHP加密解密函数分享,一个是Discuz!的authcode加密函数(带详细分解),一个是encrypt()函数。需要使用PHP将特定的信息进行加密,也就是通过加密算法生成一个加密字符串,这个加密后的字符串可以通过解密算法进行解密,便于程序对解密后的信息进行处理。最常见的应用在用户登录以及一些AP...
分类:
Web程序 时间:
2014-07-01 17:31:45
阅读次数:
197
以下为php代码PHP加解密函数: function encrypt($string) { //加密用的密钥文件 $key = "xxxxxxxx"; //加密方法 $cipher_alg = MCRYPT_TRIP...
分类:
Web程序 时间:
2014-06-27 15:56:23
阅读次数:
228
string plainText = "This is plain text that we will encrypt";
string password = "P@$$w0rd";
Console.WriteLine(plainText);
Console.WriteLine();
create a ne...
分类:
Web程序 时间:
2014-06-24 20:35:56
阅读次数:
249
// 加密function encrypt($str) { return base64_encode($str.AUTH_KEY);}// 解密function decrypt($str) { $info = base64_decode($str); $len = strlen(A...
分类:
其他好文 时间:
2014-06-24 13:41:10
阅读次数:
237
http://www.h3c.com.cn/Products___Technology/Technology/Security_Encrypt/Other_technology/Representative_collocate_enchiridion/201010/697325_30003_0.ht...
分类:
Web程序 时间:
2014-06-24 11:32:01
阅读次数:
318
JNIEXPORT jint JNICALL Java_com_encrypt_EncryptActivity_cputExtra(JNIEnv *env, jobject, jobject mContext, jstring actionName, jobjectAr...
分类:
数据库 时间:
2014-06-20 21:34:38
阅读次数:
390
【AES】
一种对称加密算法,DES的取代者。
加密相关文章见:
【代码】
代码比较多,有一部分非本文章内容代码,具体自己看吧。
package com.uikoo9.util.encrypt;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.Secure...
分类:
编程语言 时间:
2014-06-02 04:49:21
阅读次数:
426