
安全
文章平均质量分 69
jxluoix
能够自己独立开发中小型的软件系统;
对工作态度认真、执着、诚恳;勇于专研、探索、创新;
接受新事物快、见识宽广.
展开
-
有关MD5的“破解”
有关MD5,经常听到有人说MD5有可能被破解,尤其是在山大王小云教授发布了那片论文之后,加上各种篇幅的新闻报道,再加上各种不明所以的人瞎说,这种说法更是在周围很多人中散布..., 网上也充斥着大量的MD5破解方法,包括破解软件,甚至提供在线破解, 以至甚至在使用MD5的时候,总是有人表达"MD5已经被破解了"的担忧, 认为这个不安全。很多人在使用MD5的时候自己都没有绝对的信心, 可能头脑也在...2016-09-06 17:07:27 · 132 阅读 · 0 评论 -
RSA 公钥长度读写
读取长度:this.length = DerInputStream.getLength(i & 0xFF, paramInputStream); static int getLength(int paramInt, InputStream paramInputStream) throws IOException{ int j = paramInt...2017-06-06 02:55:24 · 756 阅读 · 0 评论 -
Code39中的校验和(Check Sum)实现
private int getCharIndex(char c) throws InvalidAtributeException{ if( c >= '0' && c <= '9' ){ return c - 48; } else if( c >= 'A' && c <= 'Z' ){ return c ...2017-05-29 04:42:45 · 1314 阅读 · 0 评论 -
随便写的一段代码
public enum HandshakeType { HELLO_REQUEST(0), CLIENT_HELLO(1), SERVER_HELLO(2), // certificate CERTIFICATE(3), // server_key_exchange (12) SERVER_KEY_EXCHANGE(12), ...2017-05-28 04:12:59 · 659 阅读 · 0 评论 -
一些有关PEM(PEM_read)的代码
typedef void bio_info_cb(struct bio_st *, int, const char *, int, long, long); struct crypto_ex_data_st { STACK_OF(void) *sk; int dummy; /* gcc is screwi...2017-05-24 23:31:54 · 635 阅读 · 0 评论 -
zookeeper 请求认证
认证认证请求有头部,响应有头部请求头class RequestHeader { int xid; int type;} 认证请求class AuthPacket { int type; ustring scheme; buffer auth;} 响应头class ReplyHe...2017-04-16 02:58:42 · 413 阅读 · 0 评论 -
RSA的一些资料
RSAPublic-Key Cryptography Standards (PKCS) #1: RSA Cryptography Specifications Version 2.1 目录1 介绍 32 标记法 33 密钥类型 43.1 RSA公钥 43.2 RSA私钥 54 数据转换原语 64.1 I2OSP 64.2 OS2IP 75 密码原...2016-10-03 22:04:24 · 787 阅读 · 0 评论 -
DES的一些资料
DES(DATA ENCRYPTION STANDARD) 目录 1、 Data Encryption Standard, https://en.wikipedia.org/wiki/Data_Encryption_Standard2、 DATA ENCRYPTION STANDARD (DES),http://csrc.nist.gov/publications...2016-10-03 22:04:17 · 217 阅读 · 0 评论 -
单向函数、陷门单向函数、不可逆函数,还有一个无碰撞散列函数
单向函数、陷门单向函数、不可逆函数 单向函数(One-way function)陷门单向函数(One-way Trapdoor Function, Trapdoor one-way function,Trapdoor function)无碰撞散列函数(collision-free hash function) 不能将单向函数的概念与数学意义上的不可逆函数的概念混同,因为...2016-10-02 21:58:05 · 2877 阅读 · 0 评论 -
非对称加密算法-Diffie-Hellman
非对称加密算法Diffie-Hellman,这种加密算法已经过时了。有时间整理下相关资料。整理后再贴出来。。。 :lol:2016-10-02 00:41:17 · 287 阅读 · 0 评论 -
SSL
SSLThe Secure Sockets Layer (SSL) Protocol 目录1 介绍 42 术语 43 文档术语 44 表述语言 44.1 基本快大小 44.2 Miscellaneous 44.3 向量 54.4 数值 54.5 枚举 64.6 构造类型 64.6.1 变体 64.7 加密属性 74.8 常量 75...2016-10-01 00:31:06 · 229 阅读 · 0 评论 -
MD5中的几个变换函数
private static int A = 0x67452301;private static int B = 0xefcdab89;private static int C = 0x98badcfe;private static int D = 0x10325476;// F(X,Y,Z) = XY v not(X) Z// #define F(x, y, z) ...2017-06-28 22:25:51 · 234 阅读 · 0 评论