SkayaWiki
python -c '
import sys, md5, sha, base64
password = sys.argv[1]
print "{MD5}" + base64.encodestring(md5.md5(password).digest())
print "{SHA}" + base64.encodestring(sha.sha(password).digest())
if sys.argv[2:]: salt=sys.argv[2]
else: salt=open("/dev/random").read(4)
print "{SMD5}" + base64.encodestring(md5.md5(password+salt).digest()+salt)
print "{SSHA}" + base64.encodestring(sha.sha(password+salt).digest()+salt)
' motdepasse