Mostrando las entradas con la etiqueta cryptography. Mostrar todas las entradas
Mostrando las entradas con la etiqueta cryptography. Mostrar todas las entradas
viernes, febrero 15, 2008
lunes, enero 21, 2008
Criptonomicon II
viernes, enero 04, 2008
Random MD5 hash in python
I've been working generating MD5 hashes. I wrote a python module called RandomMD5:
This module generate a new md5 hash randomically, it's to useful for any kind of security sessions (like web session, chat session, etc.)
import hashlib
import random
def new():
m = hashlib.md5()
m.update(str(random.random()))
return m.hexdigest()
This module generate a new md5 hash randomically, it's to useful for any kind of security sessions (like web session, chat session, etc.)
import RandomMD5
...
import ChatServer
s = ChatServer.Session()
md5_hash = RandomMD5.new()
s.SessionKey = md5_hash
Suscribirse a:
Entradas (Atom)