/// /// AES-256加密 /// /// /// public string Encrypt(string toEncrypt) { // 256-AES key ...
分类:
其他好文 时间:
2014-09-17 13:25:42
阅读次数:
166
0、摘要 今天看到吉日嘎拉的一篇关于管理软件中信息加密和安全的文章,感觉非常有实际意义。文中作者从实践经验出发,讨论了信息管理软件中如何通过哈希和加密进行数据保护。但是从文章评论中也可以看出很多朋友对这个方面一些基本概念比较模糊,这样就容易“照葫芦画瓢”,不能根据自身具体情况灵活选择和使用各种哈希和...
分类:
其他好文 时间:
2014-09-02 00:03:39
阅读次数:
241
题意:二维坐标系里有 n 个点 (i, ai), ai >= 0,从 (i, ai)到(i, 0)划竖线,共有 n 条竖线。
找出两条竖线,使得它们构成的矩形的面积最大,矩形的高取决于最短的竖线。
思路:贪心
从首尾两个下标head 和trail 处开始扫描,用一个变量 maxArea 保持当前最大的矩形面积。
如果head 指向的竖线短于 trail 的,则右移 head
否则左移 trail
计算面积,更新 maxArea
复杂度:时间O(n),空间O(1)
int maxArea(vector<in...
分类:
其他好文 时间:
2014-08-30 16:27:49
阅读次数:
223
1123 - Trail Maintenance
PDF (English)
Statistics
Forum
Time Limit: 2 second(s)
Memory Limit: 32 MB
Tigers in the Sunderbans wish to travel freely among the N...
分类:
其他好文 时间:
2014-08-26 21:30:56
阅读次数:
360
条款26:尽可能延后变量定义式的出现时间
std::string encryptPassword(conststd::string &password)
{
std::string encrypted;
encrypted=password;
encrypt(encrypted);
return encrypted;
}
这样定义即初始化encrypted付出的代价是一个构造函数和...
分类:
编程语言 时间:
2014-08-22 17:50:39
阅读次数:
249
/// /// DES加密 /// /// 需要加密字符串 /// 加密密钥 /// /// public static string Encrypt(string sourceStrin...
分类:
其他好文 时间:
2014-08-21 16:34:14
阅读次数:
156
* 所有的加密技术的基本操作都是用encrypt()和decrypt()方法对消息 * 进行分解和组合,其中消息是用空格分隔的字符串,除了encrypt()和decrypt() * 外每个加密类还需要encode()和decode()方法对每一个单词按照特定的算法 * 规则进行编码,。例如Cae.....
分类:
编程语言 时间:
2014-08-14 20:31:29
阅读次数:
253
How to recover from an OGG-01028 Incompatible Record if the trail is not corrupt (Doc ID 1507462.1)Oracle GoldenGate - Version 9.5_EA and laterInforma...
分类:
其他好文 时间:
2014-08-14 20:28:19
阅读次数:
538
package Encrypt;
import java.security.*;
import javax.crypto.*;
import sun.misc.*;
/**
* 使用DES加密与解密,可对byte[],String类型进行加密与解密
* 密文可使用String,byte[]存储.
* 方法:
* v...
分类:
编程语言 时间:
2014-08-13 13:08:56
阅读次数:
237
SSH, SecureSHell, was designed and created to provide the best security when accessing another computer remotely.Not only does it encrypt the remote s...
分类:
其他好文 时间:
2014-08-12 18:39:54
阅读次数:
231