couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Trivial Update of "Security_Features_Overview" by PaulOkstad
Date Wed, 21 Sep 2011 21:45:28 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Security_Features_Overview" page has been changed by PaulOkstad:
http://wiki.apache.org/couchdb/Security_Features_Overview?action=diff&rev1=27&rev2=28

Comment:
added comments to python code

  {{{
  >>> import hashlib
  >>> h=hashlib.sha1()
- >>> h.update('salt')
- >>> h.update('mypassword')
+ >>> h.update('salt')       # order is important, salt goes first
+ >>> h.update('mypassword') # password comes second
  >>> h.digest()
  '_\xba\x95\x82\xb4\xb7\xa1[+g\x9f\xf0`_\x1dnn\x82\x95\xcf'
  >>> h.hexdigest()

Mime
View raw message