本文转自博文分组密码的几种模式。另外,还可参考另一篇。 介绍最详细的是维基百科条目块密码的工作模式,非常值得推荐。 电子密码本(Electronic Code Book,ECB) 密码块链接(Cipher Block Chaining,CBC) 密码反馈(Cipher Feedback,...
分类:
其他好文 时间:
2015-03-05 16:36:17
阅读次数:
148
由于一个银行的项目需要,项目app的Android客户端和web端均需要对客户端上传至服务器的文件(语音、图片)
进行加密。加密实现方式是使用javax.crypto包中提供的类,这些类中最主要的是Cipher类。
Android项目中实现的步骤如下:
1、根据我们指定的strkey生成一个用于加密解密的key
2、加密文件,根据key加密文件
3、解密文件,根据key解密文件
代...
分类:
移动开发 时间:
2015-03-04 09:50:48
阅读次数:
169
iOS 与 Java 服务器之间 SSL 握手失败的解决:Cipher Suites...
分类:
移动开发 时间:
2015-03-03 22:10:54
阅读次数:
192
用string串来处理这个题很方便#include#includeusing namespace std;string cipher(string &s);//引用为参数,此函数返回一个string类的字符串int main(){string s1, s2, s3,s4;while (1){getl...
分类:
编程语言 时间:
2015-03-01 16:58:23
阅读次数:
157
(备查)SSH-SERVER配置命令#ssh server 的配置
sysname SSH-SERVER
aaa
local-user client001 password cipher huawei
local-user client001 server-type ssh
local-user client001 privilege level 3
stelnet server enable
ss...
分类:
其他好文 时间:
2015-02-28 08:51:45
阅读次数:
182
(备查)必要的FTP配置命令如下:system-view
ftp server enable #启用ftp服务
aaa #进入aaa模式
local-user ftp server-type ftp #设置用户名的服务类型为ftp
local-user ftp password cipher huawei #创建用户名ftp,密码huawei
local-user ftp privilege lev...
分类:
其他好文 时间:
2015-02-27 21:32:34
阅读次数:
184
public static void main(String[] args) { try { String plainText = "duwenlei"; KeyPairGenerator keyPairGenerator = KeyPair...
分类:
编程语言 时间:
2015-02-26 14:47:30
阅读次数:
245
1 encrypt v.加密 2 3 eavesdropping n.偷听 4 5 cipher n.密码 6 7 substitution n.代替,替换 8 9 permutation n.排序,序列10 11 occurrence n.出现,事件12 13 coincide v.与....
分类:
其他好文 时间:
2015-02-18 00:59:29
阅读次数:
165
In order to crack “Vigenere Cipher” under the circumstance that the key length can be only 3, 4 or 5, I used frequency analysis to find possible keys and compared the Euclidean distance of all c...
分类:
其他好文 时间:
2015-02-17 23:52:05
阅读次数:
416
好习惯,先上代码再说事加密void AesEncrypt(unsigned char* pchIn, int nInLen, unsigned char *ciphertext, int &ciphertext_len, unsigned char * pchKey){ EVP_CIPHER_CTX...
分类:
其他好文 时间:
2015-02-10 18:21:24
阅读次数:
387