密码学相关的工具和代码

在线工具

http://www.factordb.com/ (大整数分解)
http://rumkin.com/tools/cipher/ (经典密码学算法)
https://malicioussha1.github.io (sha1 碰撞)
http://quipqiup.com (置换密码,频率破解)
https://redkestrel.co.uk/products/decoder/ (在线解析证书)

解析 public key

1
2
3
4
5
6
from Crypto.PublicKey import RSA
p = '''-----BEGIN PUBLIC KEY-----
xxx
-----END PUBLIC KEY-----'''
k=RSA.importKey(p)
k.n, k.e
1
2
3
$ openssl rsa -RSAPublicKey_in -text < [infile] > [outfile]  # for pkcs1 public keys
$ openssl rsa -pubin -text < [infile] > [outfile] # for pkcs8 public keys
$ openssl rsa -text < [infile] > [outfile] # for private keys

md5 碰撞

https://github.com/cr-marcstevens/hashclash

分享到 评论