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=26&rev2=27

Comment:
update python example to include salt

  
  {{{
  >>> import hashlib
- >>> h = hashlib.sha1()
+ >>> h=hashlib.sha1()
- >>> h.update("foobar")
+ >>> h.update('salt')
+ >>> h.update('mypassword')
  >>> h.digest()
- '\x88C\xd7\xf9$\x16!\x1d\xe9\xeb\xb9c\xffL\xe2\x81%\x93(x'
+ '_\xba\x95\x82\xb4\xb7\xa1[+g\x9f\xf0`_\x1dnn\x82\x95\xcf'
  >>> h.hexdigest()
- '8843d7f92416211de9ebb963ff4ce28125932878'
+ '5fba9582b4b7a15b2b679ff0605f1d6e6e8295cf'
  }}}
  sha1.js implementation (from 
[[https://github.com/apache/couchdb/blob/trunk/share/www/script/sha1.js|CouchDB]])
  

Reply via email to