diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2016-11-25 11:53:32 -0500 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2016-11-25 11:53:32 -0500 |
| commit | 5e230694bdc3c16a6962d3a57ec821584dccdc23 (patch) | |
| tree | 850bc3ae0219b500aff54868253211849935cbfb /docs/lib | |
| parent | 13d930dd7da35ecd9e158cf49696d4ee073d385c (diff) | |
| download | passlib-5e230694bdc3c16a6962d3a57ec821584dccdc23.tar.gz | |
docs: minor wording corrections, replaced 'encrypt' with 'hash' in a bunch of places.
Diffstat (limited to 'docs/lib')
31 files changed, 43 insertions, 43 deletions
diff --git a/docs/lib/passlib.apps.rst b/docs/lib/passlib.apps.rst index e89b804..7e5559f 100644 --- a/docs/lib/passlib.apps.rst +++ b/docs/lib/passlib.apps.rst @@ -3,7 +3,7 @@ ================================================================== .. module:: passlib.apps - :synopsis: encrypting & verifying passwords used in sql servers and other applications + :synopsis: hashing & verifying passwords used in sql servers and other applications .. _predefined-context-example: @@ -23,7 +23,7 @@ Each of the objects in this module can be imported directly:: >>> # a helper to let new applications *quickly* add password hashing. >>> from passlib.apps import custom_app_context -Encrypting a password is simple (and salt generation is handled automatically):: +Hashing a password is simple (and salt generation is handled automatically):: >>> hash = custom_app_context.hash("toomanysecrets") >>> hash @@ -185,11 +185,11 @@ PostgreSQL This object should recognize password hashes stores in PostgreSQL's ``pg_shadow`` table; which are all assumed to follow the :class:`~passlib.hash.postgres_md5` format. - Note that the username must be provided whenever encrypting or verifying a postgres hash:: + Note that the username must be provided whenever hashing or verifying a postgres hash:: >>> from passlib.apps import postgres_context - >>> # encrypting a password... + >>> # hashing a password... >>> postgres_context.hash("somepass", user="dbadmin") 'md578ed0f0ab2be0386645c1b74282917e7' diff --git a/docs/lib/passlib.context.rst b/docs/lib/passlib.context.rst index 2c95a74..b2f7248 100644 --- a/docs/lib/passlib.context.rst +++ b/docs/lib/passlib.context.rst @@ -23,7 +23,7 @@ The CryptContext Class ====================== .. class:: CryptContext(schemes=None, \*\*kwds) - Helper for encrypting passwords using different algorithms. + Helper for hashing passwords using different algorithms. At its base, this is a proxy object that makes it easy to use multiple :class:`~passlib.ifc.PasswordHash` objects at the same time. @@ -104,7 +104,7 @@ Options which directly affect the behavior of the CryptContext instance: Specifies the name of the default scheme. This option controls which of the configured - schemes will be used as the default when encrypting + schemes will be used as the default when creating new hashes. This parameter is optional; if omitted, the first non-deprecated algorithm in ``schemes`` will be used. You can use the :meth:`~CryptContext.default_scheme` method @@ -400,7 +400,7 @@ For example, a CryptContext could be set up as follows:: ... sha256_crypt__default_rounds=77000, ... staff__sha256_crypt__default_rounds=88000) - >>> # In this case, calling encrypt with ``category=None`` would result + >>> # In this case, calling hash() with ``category=None`` would result >>> # in a hash that used 77000 sha256-crypt rounds: >>> myctx.hash("password", category=None) '$5$rounds=77000$sj3XI0AbKlEydAKt$BhFvyh4.IoxaUeNlW6rvQ.O0w8BtgLQMYorkCOMzf84' @@ -442,7 +442,7 @@ style methods provided by all the :class:`~passlib.ifc.PasswordHash` objects: Hash Migration -------------- -Applications which want to detect and re-encrypt deprecated +Applications which want to detect and regenerate deprecated hashes will want to use one of the following methods: .. automethod:: CryptContext.verify_and_update diff --git a/docs/lib/passlib.hash.argon2.rst b/docs/lib/passlib.hash.argon2.rst index 0eb1ad6..fcc9508 100644 --- a/docs/lib/passlib.hash.argon2.rst +++ b/docs/lib/passlib.hash.argon2.rst @@ -17,7 +17,7 @@ for new applications. This class can be used directly as follows:: >>> from passlib.hash import argon2 - >>> # generate new salt, encrypt password + >>> # generate new salt, hash password >>> h = argon2.hash("password") >>> h '$argon2i$v=19$m=512,t=2,p=2$aI2R0hpDyLm3ltLa+1/rvQ$LqPKjd6n8yniKtAithoR7A' diff --git a/docs/lib/passlib.hash.bcrypt.rst b/docs/lib/passlib.hash.bcrypt.rst index 946c5ff..4683690 100644 --- a/docs/lib/passlib.hash.bcrypt.rst +++ b/docs/lib/passlib.hash.bcrypt.rst @@ -13,7 +13,7 @@ for new applications. This class can be used directly as follows:: >>> from passlib.hash import bcrypt - >>> # generate new salt, encrypt password + >>> # generate new salt, hash password >>> h = bcrypt.hash("password") >>> h '$2a$12$NT0I31Sa7ihGEWpka9ASYrEFkhuTNeBQ2xfZskIiiJeyFXhRgS.Sy' diff --git a/docs/lib/passlib.hash.bcrypt_sha256.rst b/docs/lib/passlib.hash.bcrypt_sha256.rst index a7470c0..c9d2870 100644 --- a/docs/lib/passlib.hash.bcrypt_sha256.rst +++ b/docs/lib/passlib.hash.bcrypt_sha256.rst @@ -15,7 +15,7 @@ This class can be used directly as follows:: >>> from passlib.hash import bcrypt_sha256 - >>> # generate new salt, encrypt password + >>> # generate new salt, hash password >>> h = bcrypt_sha256.hash("password") >>> h '$bcrypt-sha256$2a,12$LrmaIX5x4TRtAwEfwJZa1.$2ehnw6LvuIUTM0iz4iz9hTxv21B6KFO' diff --git a/docs/lib/passlib.hash.bsdi_crypt.rst b/docs/lib/passlib.hash.bsdi_crypt.rst index cb82797..dde7dee 100644 --- a/docs/lib/passlib.hash.bsdi_crypt.rst +++ b/docs/lib/passlib.hash.bsdi_crypt.rst @@ -14,7 +14,7 @@ It class can be used directly as follows:: >>> from passlib.hash import bsdi_crypt - >>> # generate new salt, encrypt password + >>> # generate new salt, hash password >>> hash = bsdi_crypt.hash("password") >>> hash '_7C/.Bf/4gZk10RYRs4Y' diff --git a/docs/lib/passlib.hash.cisco_pix.rst b/docs/lib/passlib.hash.cisco_pix.rst index d879748..5b00b83 100644 --- a/docs/lib/passlib.hash.cisco_pix.rst +++ b/docs/lib/passlib.hash.cisco_pix.rst @@ -30,7 +30,7 @@ newer systems. They can be used directly as follows:: >>> from passlib.hash import cisco_pix as pix - >>> # encrypt password using specified username + >>> # hash password using specified username >>> hash = pix.hash("password", user="user") >>> hash 'A5XOy94YKDPXCo7U' @@ -45,7 +45,7 @@ newer systems. They can be used directly as follows:: >>> pm.verify("letmein", hash, user="user") False - >>> # encrypt password without associate user account + >>> # hash password without associated user account >>> hash2 = pix.hash("password") >>> hash2 'NuLKvvWGg.x9HEKO' diff --git a/docs/lib/passlib.hash.des_crypt.rst b/docs/lib/passlib.hash.des_crypt.rst index 7aa6528..c282d5e 100644 --- a/docs/lib/passlib.hash.des_crypt.rst +++ b/docs/lib/passlib.hash.des_crypt.rst @@ -13,7 +13,7 @@ It can used directly as follows:: >>> from passlib.hash import des_crypt - >>> # generate new salt, encrypt password + >>> # generate new salt, hash password >>> hash = des_crypt.hash("password") 'JQMuyS6H.AGMo' diff --git a/docs/lib/passlib.hash.django_std.rst b/docs/lib/passlib.hash.django_std.rst index 02116c6..5135f4f 100644 --- a/docs/lib/passlib.hash.django_std.rst +++ b/docs/lib/passlib.hash.django_std.rst @@ -96,7 +96,7 @@ These classes can be used directly as follows:: >>> from passlib.hash import django_pbkdf2_sha256 as handler - >>> # encrypt password + >>> # hash password >>> h = handler.hash("password") >>> h 'pbkdf2_sha256$10000$s1w0UXDd00XB$+4ORmyvVWAQvoAEWlDgN34vlaJx1ZTZpa1pCSRey2Yk=' @@ -176,7 +176,7 @@ These classes can be used directly as follows:: >>> from passlib.hash import django_salted_sha1 as handler - >>> # encrypt password + >>> # hash password >>> h = handler.hash("password") >>> h 'sha1$c6218$161d1ac8ab38979c5a31cbaba4a67378e7e60845' diff --git a/docs/lib/passlib.hash.fshp.rst b/docs/lib/passlib.hash.fshp.rst index 6ffefd0..ef959d3 100644 --- a/docs/lib/passlib.hash.fshp.rst +++ b/docs/lib/passlib.hash.fshp.rst @@ -23,7 +23,7 @@ It can be used directly as follows:: >>> from passlib.hash import fshp - >>> # generate new salt, encrypt password + >>> # generate new salt, hash password >>> hash = fshp.hash("password") >>> hash '{FSHP1|16|16384}PtoqcGUetmVEy/uR8715TNqKa8+teMF9qZO1lA9lJNUm1EQBLPZ+qPRLeEPHqy6C' diff --git a/docs/lib/passlib.hash.hex_digests.rst b/docs/lib/passlib.hash.hex_digests.rst index 8e66b87..ce30faf 100644 --- a/docs/lib/passlib.hash.hex_digests.rst +++ b/docs/lib/passlib.hash.hex_digests.rst @@ -22,7 +22,7 @@ and can be used directly as follows:: >>> from passlib.hash import hex_sha1 as hex_sha1 - >>> # encrypt password + >>> # hash password >>> h = hex_sha1.hash("password") >>> h '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8' diff --git a/docs/lib/passlib.hash.ldap_crypt.rst b/docs/lib/passlib.hash.ldap_crypt.rst index ede7c5f..7cd2df8 100644 --- a/docs/lib/passlib.hash.ldap_crypt.rst +++ b/docs/lib/passlib.hash.ldap_crypt.rst @@ -20,7 +20,7 @@ elsewhere in Passlib, and can be used directly as follows:: >>> from passlib.hash import ldap_md5_crypt - >>> # encrypt password + >>> # hash password >>> hash = ldap_md5_crypt.hash("password") >>> hash '{CRYPT}$1$gwvn5BO0$3dyk8j.UTcsNUPrLMsU6/0' diff --git a/docs/lib/passlib.hash.ldap_std.rst b/docs/lib/passlib.hash.ldap_std.rst index 12c2abd..d3788c1 100644 --- a/docs/lib/passlib.hash.ldap_std.rst +++ b/docs/lib/passlib.hash.ldap_std.rst @@ -14,7 +14,7 @@ and are can be used directly as follows:: >>> from passlib.hash import ldap_salted_md5 as lsm - >>> # encrypt password + >>> # hash password >>> hash = lsm.hash("password") >>> hash '{SMD5}OqsUXNHIhHbznxrqHoIM+ZT8DmE=' diff --git a/docs/lib/passlib.hash.lmhash.rst b/docs/lib/passlib.hash.lmhash.rst index 26a4164..65acdf8 100644 --- a/docs/lib/passlib.hash.lmhash.rst +++ b/docs/lib/passlib.hash.lmhash.rst @@ -20,7 +20,7 @@ This class can be used directly as follows:: >>> from passlib.hash import lmhash - >>> # encrypt password + >>> # hash password >>> h = lmhash.hash("password") >>> h 'e52cac67419a9a224a3b108f3fa6cb6d' diff --git a/docs/lib/passlib.hash.md5_crypt.rst b/docs/lib/passlib.hash.md5_crypt.rst index 844b6b6..f3c9279 100644 --- a/docs/lib/passlib.hash.md5_crypt.rst +++ b/docs/lib/passlib.hash.md5_crypt.rst @@ -25,7 +25,7 @@ The :class:`!md5_crypt` class can be can be used directly as follows:: >>> from passlib.hash import md5_crypt - >>> # generate new salt, encrypt password + >>> # generate new salt, hash password >>> h = md5_crypt.hash("password") >>> h '$1$3azHgidD$SrJPt7B.9rekpmwJwtON31' @@ -36,7 +36,7 @@ The :class:`!md5_crypt` class can be can be used directly as follows:: >>> md5_crypt.verify("secret", h) False - >>> # encrypt password using cisco-compatible 4-char salt + >>> # hash password using cisco-compatible 4-char salt >>> md5_crypt.using(salt_size=4).hash("password") '$1$wu98$9UuD3hvrwehnqyF1D548N0' diff --git a/docs/lib/passlib.hash.msdcc.rst b/docs/lib/passlib.hash.msdcc.rst index acfd87f..5b39caa 100644 --- a/docs/lib/passlib.hash.msdcc.rst +++ b/docs/lib/passlib.hash.msdcc.rst @@ -24,7 +24,7 @@ This class can be used directly as follows:: >>> from passlib.hash import msdcc - >>> # encrypt password using specified username + >>> # hash password using specified username >>> hash = msdcc.hash("password", user="Administrator") >>> hash '25fd08fa89795ed54207e6e8442a6ca0' diff --git a/docs/lib/passlib.hash.msdcc2.rst b/docs/lib/passlib.hash.msdcc2.rst index 203d957..4510c10 100644 --- a/docs/lib/passlib.hash.msdcc2.rst +++ b/docs/lib/passlib.hash.msdcc2.rst @@ -21,7 +21,7 @@ This class can be used directly as follows:: >>> from passlib.hash import msdcc2 - >>> # encrypt password using specified username + >>> # hash password using specified username >>> hash = msdcc2.hash("password", user="Administrator") >>> hash '4c253e4b65c007a8cd683ea57bc43c76' diff --git a/docs/lib/passlib.hash.mssql2000.rst b/docs/lib/passlib.hash.mssql2000.rst index 481008c..6da9c8f 100644 --- a/docs/lib/passlib.hash.mssql2000.rst +++ b/docs/lib/passlib.hash.mssql2000.rst @@ -16,7 +16,7 @@ This class can be used directly as follows:: >>> from passlib.hash import mssql2000 as m20 - >>> # encrypt password + >>> # hash password >>> h = m20.hash("password") >>> h '0x0100200420C4988140FD3920894C3EDC188E94F428D57DAD5905F6CC1CBAF950CAD4C63F272B2C91E4DEEB5E6444' diff --git a/docs/lib/passlib.hash.mssql2005.rst b/docs/lib/passlib.hash.mssql2005.rst index bb6b0ec..5d7a7a7 100644 --- a/docs/lib/passlib.hash.mssql2005.rst +++ b/docs/lib/passlib.hash.mssql2005.rst @@ -15,7 +15,7 @@ This class can be used directly as follows:: >>> from passlib.hash import mssql2005 as m25 - >>> # encrypt password + >>> # hash password >>> h = m25.hash("password") >>> h '0x01006ACDF9FF5D2E211B392EEF1175EFFE13B3A368CE2F94038B' diff --git a/docs/lib/passlib.hash.mysql323.rst b/docs/lib/passlib.hash.mysql323.rst index eab3e3e..a8e8bfd 100644 --- a/docs/lib/passlib.hash.mysql323.rst +++ b/docs/lib/passlib.hash.mysql323.rst @@ -19,7 +19,7 @@ That aside, this class can be used as follows:: >>> from passlib.hash import mysql323 - >>> # encrypt password + >>> # hash password >>> mysql323.hash("password") '5d2e19393cc5ef67' diff --git a/docs/lib/passlib.hash.nthash.rst b/docs/lib/passlib.hash.nthash.rst index 92c934e..237372a 100644 --- a/docs/lib/passlib.hash.nthash.rst +++ b/docs/lib/passlib.hash.nthash.rst @@ -17,7 +17,7 @@ This class can be used directly as follows:: >>> from passlib.hash import nthash - >>> # encrypt password + >>> # hash password >>> h = nthash.hash("password") >>> h '8846f7eaee8fb117ad06bdd830b7586c' diff --git a/docs/lib/passlib.hash.oracle10.rst b/docs/lib/passlib.hash.oracle10.rst index 3d697c2..de874d4 100644 --- a/docs/lib/passlib.hash.oracle10.rst +++ b/docs/lib/passlib.hash.oracle10.rst @@ -13,7 +13,7 @@ a username for all encrypt/verify operations):: >>> from passlib.hash import oracle10 as oracle10 - >>> # encrypt password using specified username + >>> # hash password using specified username >>> hash = oracle10.hash("password", user="username") >>> hash '872805F3F4C83365' diff --git a/docs/lib/passlib.hash.oracle11.rst b/docs/lib/passlib.hash.oracle11.rst index 0953ead..bf2ad1d 100644 --- a/docs/lib/passlib.hash.oracle11.rst +++ b/docs/lib/passlib.hash.oracle11.rst @@ -10,7 +10,7 @@ This class can be can be used directly as follows:: >>> from passlib.hash import oracle11 as oracle11 - >>> # generate new salt, encrypt password + >>> # generate new salt, hash password >>> hash = oracle11.hash("password") >>> hash 'S:4143053633E59B4992A8EA17D2FF542C9EDEB335C886EED9C80450C1B4E6' diff --git a/docs/lib/passlib.hash.pbkdf2_digest.rst b/docs/lib/passlib.hash.pbkdf2_digest.rst index 10e68ba..a918167 100644 --- a/docs/lib/passlib.hash.pbkdf2_digest.rst +++ b/docs/lib/passlib.hash.pbkdf2_digest.rst @@ -26,7 +26,7 @@ All of these classes can be used directly as follows:: >>> from passlib.hash import pbkdf2_sha256 - >>> # generate new salt, encrypt password + >>> # generate new salt, hash password >>> hash = pbkdf2_sha256.hash("password") >>> hash '$pbkdf2-sha256$6400$0ZrzXitFSGltTQnBWOsdAw$Y11AchqV4b0sUisdZd0Xr97KWoymNE0LNNrnEgY4H9M' diff --git a/docs/lib/passlib.hash.postgres_md5.rst b/docs/lib/passlib.hash.postgres_md5.rst index 4627eb7..7a88bb8 100644 --- a/docs/lib/passlib.hash.postgres_md5.rst +++ b/docs/lib/passlib.hash.postgres_md5.rst @@ -17,7 +17,7 @@ That aside, this class can be used directly as follows:: >>> from passlib.hash import postgres_md5 - >>> # encrypt password using specified username + >>> # hash password using specified username >>> hash = postgres_md5.hash("password", user="username") >>> hash 'md55a231fcdb710d73268c4f44283487ba2' diff --git a/docs/lib/passlib.hash.scram.rst b/docs/lib/passlib.hash.scram.rst index a1f63b6..48e2ed0 100644 --- a/docs/lib/passlib.hash.scram.rst +++ b/docs/lib/passlib.hash.scram.rst @@ -36,7 +36,7 @@ This class can be used like any other Passlib hash, as follows:: >>> from passlib.hash import scram - >>> # generate new salt, encrypt password against default list of algorithms + >>> # generate new salt, hash password against default list of algorithms >>> hash = scram.hash("password") >>> hash '$scram$6400$.Z/znnNOKWUsBaCU$sha-1=cRseQyJpnuPGn3e6d6u6JdJWk.0,sha-256=5G diff --git a/docs/lib/passlib.hash.scrypt.rst b/docs/lib/passlib.hash.scrypt.rst index 6c2c061..19751ca 100644 --- a/docs/lib/passlib.hash.scrypt.rst +++ b/docs/lib/passlib.hash.scrypt.rst @@ -23,7 +23,7 @@ This class can be used directly as follows:: >>> from passlib.hash import scrypt - >>> # generate new salt, encrypt password + >>> # generate new salt, hash password >>> h = scrypt.hash("password") >>> h '$scrypt$ln=16,r=8,p=1$aM15713r3Xsvxbi31lqr1Q$nFNh2CVHVjNldFVKDHDlm4CbdRSCdEBsjjJxD+iCs5E' diff --git a/docs/lib/passlib.hash.sha256_crypt.rst b/docs/lib/passlib.hash.sha256_crypt.rst index b1e23e8..907ce7a 100644 --- a/docs/lib/passlib.hash.sha256_crypt.rst +++ b/docs/lib/passlib.hash.sha256_crypt.rst @@ -17,7 +17,7 @@ This class can be used directly as follows:: >>> from passlib.hash import sha256_crypt - >>> # generate new salt, encrypt password + >>> # generate new salt, hash password >>> hash = sha256_crypt.hash("password") >>> hash '$5$rounds=80000$wnsT7Yr92oJoP28r$cKhJImk5mfuSKV9b3mumNzlbstFUplKtQXXMo4G6Ep5' diff --git a/docs/lib/passlib.hash.unix_disabled.rst b/docs/lib/passlib.hash.unix_disabled.rst index 1159787..8bdf9c3 100644 --- a/docs/lib/passlib.hash.unix_disabled.rst +++ b/docs/lib/passlib.hash.unix_disabled.rst @@ -13,7 +13,7 @@ It can be used directly as follows:: >>> from passlib.hash import unix_disabled - >>> # 'encrypting' a password always results in "!" or "*" + >>> # 'hashing' a password always results in "!" or "*" >>> unix_disabled.hash("password") '!' diff --git a/docs/lib/passlib.hosts.rst b/docs/lib/passlib.hosts.rst index d72fef0..811993d 100644 --- a/docs/lib/passlib.hosts.rst +++ b/docs/lib/passlib.hosts.rst @@ -3,10 +3,10 @@ ============================================ .. module:: passlib.hosts - :synopsis: encrypting & verifying operating system passwords + :synopsis: hashing & verifying operating system passwords This module provides some preconfigured :ref:`CryptContext <context-reference>` -instances for encrypting & verifying password hashes tied to user accounts of various operating systems. +instances for hashing & verifying password hashes tied to user accounts of various operating systems. While (most) of the objects are available cross-platform, their use is oriented primarily towards Linux and BSD variants. @@ -27,7 +27,7 @@ Each of the objects in this module can be imported directly:: >>> # which is configured to recognized most hashes found in Linux /etc/shadow files. >>> from passlib.apps import linux_context -Encrypting a password is simple (and salt generation is handled automatically):: +Hashing a password is simple (and salt generation is handled automatically):: >>> hash = linux_context.hash("toomanysecrets") >>> hash @@ -112,7 +112,7 @@ Current Host OS are available on a given system (via ``host_context.schemes()``). * it defaults to the strongest algorithm available, automatically configured to an appropriate strength - for encrypting new passwords. + for hashing new passwords. * whereas :func:`!crypt` typically defaults to using :mod:`~passlib.hash.des_crypt`; and provides little introspection. diff --git a/docs/lib/passlib.ifc.rst b/docs/lib/passlib.ifc.rst index 8118a4c..77ea440 100644 --- a/docs/lib/passlib.ifc.rst +++ b/docs/lib/passlib.ifc.rst @@ -270,7 +270,7 @@ using the provided configuration string. :type config: unicode or bytes :arg config: - configuration string to use when encrypting secret. + configuration string to use when hashing the secret. this can either be an existing hash that was previously returned by :meth:`PasswordHash.genhash`, or a configuration string that was previously created by :meth:`PasswordHash.genconfig`. |
