#include "poco/Crypto/Cipher.h"#include "poco/Crypto/CipherFactory.h"#include "Poco/Crypto/RSAKey.h"using Poco::Crypto::Cipher;using Poco::Crypto::Cip ...
分类:
其他好文 时间:
2017-05-20 12:26:33
阅读次数:
183
#!/usr/bin/env python # -*- coding:utf-8 -*- import rsa import base64 # ######### 1. 生成公钥私钥 ######### pub_key_obj, priv_key_obj = rsa.newkeys(256) pub... ...
分类:
其他好文 时间:
2017-05-17 23:34:37
阅读次数:
224
1 define("ENCRYPT",'2998a15c0cd853edad7');//密钥key 2 3 4 被存储的数据库的字段设置成blob格式(二进制) 5 //AES_ENCRYPT 加密 6 insert into `ks_user`(user_name,user_pwd) values... ...
分类:
数据库 时间:
2017-05-17 18:18:53
阅读次数:
153
unicode编码下,cstring与char*、String转Cstring的转换方法: 1 . CSstring转char * wchar_t *psw_wchar = psw.GetBuffer(); //获取psw的宽字符用数组保存 psw.ReleaseBuffer(); int nLen ...
分类:
其他好文 时间:
2017-05-16 14:58:15
阅读次数:
165
Roy's friends has been spying on his text messages, so Roy thought of an algorithm to encrypt text messages. Encryption Algorithm is as follows:We say ...
分类:
编程语言 时间:
2017-05-15 14:21:44
阅读次数:
212
D - Throwing cards away I Given is an ordered deck of n cards numbered 1 to n with card 1 at the top and card n at the bottom. The following operation ...
首先,写一个cmd脚本 xx.cmd 再写一个bat脚本xx.bat serviceName一般就是orcl 若要加载sql则 写一个ctl文件xx.ctl 指定分隔符,字段终止于X'09' (很重要),是一个制表符(TAB),如果用逗号分割就将X'09'替换为',' 指字段终止于'|' ...
分类:
数据库 时间:
2017-05-10 18:56:25
阅读次数:
225
大家都知道,wcf上传文件是有大小限制的,对,上传下载都有限制,但是关于wcf的配置,网上确实不太好找或者说是不准确不全面 记住,要有security这个节点 ...
分类:
其他好文 时间:
2017-05-03 14:38:58
阅读次数:
195
Recommended data-structures: ArrayMap<K,V> in place of HashMap<K,V> ArraySet<K,V> in place of HashSet<K,V> SparseArray<V> in place of HashMap<Integer, ...
分类:
其他好文 时间:
2017-05-03 11:36:50
阅读次数:
144
和java程序进行交互的时候,java那边使用AES 128位填充模式:AES/CBC/PKCS5Padding加密方法,在nodejs中采用对应的aes-128-cbc加密方法就能对应上,因为有使用向量(iv),所以nodejs中要用createCipheriv方法,而不是createCipher ...
分类:
Web程序 时间:
2017-04-29 01:20:19
阅读次数:
276