|
| 1 | +Metadata-Version: 2.1 |
| 2 | +Name: pypasswords |
| 3 | +Version: 0.3 |
| 4 | +Summary: Working with passwords made simple |
| 5 | +Home-page: https://github.com/CosmoSt4r/pypasswords |
| 6 | +Author: CosmoStar |
| 7 | +Author-email: JustCosmos@yandex.ru |
| 8 | +License: MIT |
| 9 | +Download-URL: https://github.com/CosmoSt4r/pypasswords/archive/v_03.tar.gz |
| 10 | +Description: # Pypasswords - work with passwords easily. |
| 11 | + |
| 12 | + Pypasswords provides easy hashing, checking and generating passwords for you. |
| 13 | + |
| 14 | + # Overview |
| 15 | + |
| 16 | + - Hash passwords using your favourite hashing algorithms |
| 17 | + - Check passwords for strength or validity |
| 18 | + - Generate passwords with your own parameters |
| 19 | + |
| 20 | + ## Installation |
| 21 | + |
| 22 | + To install this package you can use Pypi via pip |
| 23 | + |
| 24 | + ``` |
| 25 | + $ pip install pypasswords |
| 26 | + ``` |
| 27 | + |
| 28 | + ## Usage |
| 29 | + |
| 30 | + First you need to import all methods from this package |
| 31 | + |
| 32 | + ```py |
| 33 | + from pypasswords import hash_it, check_it, generate_it |
| 34 | + ``` |
| 35 | + ... or simply |
| 36 | + |
| 37 | + ```py |
| 38 | + from pypasswords import * |
| 39 | + ``` |
| 40 | + |
| 41 | + #### Hashing |
| 42 | + |
| 43 | + You can easily hash your password with just one line of code: |
| 44 | + |
| 45 | + ```py |
| 46 | + hash_it('qwerty') |
| 47 | + ``` |
| 48 | + |
| 49 | + **hash_it** method has the following parameters: |
| 50 | + * **password** - (string) |
| 51 | + * **hash_type** - (string). *Optional*. Use to specify hashing algorithm. Default: *sha-256* |
| 52 | + * **salting** - (bool). *Optional*. Use to specify whether to use salt or not. More [here](https://en.wikipedia.org/wiki/Salt_(cryptography)). Default: *False*. Warning: if you specify salt=*True* then the method will generate random salt and return both the hash and the salt. |
| 53 | + * **static_salt** - (string). *Optional*. Use to specify your own salt. |
| 54 | + * **salt_length** - (int). *Optional*. Use to specify the length of the salt. Default: *6* |
| 55 | + * **local_parameter** - (string). *Optional*. Use to specify local parameter. More [here](https://www.openwall.com/presentations/YaC2012-Password-Hashing-At-Scale/mgp00005.html). |
| 56 | + |
| 57 | + ##### Examples: |
| 58 | + |
| 59 | + ```py |
| 60 | + hash_it('qwerty', hash_type='sha512') |
| 61 | + hash_it('qwerty', salting=True, static_salt='some_word') |
| 62 | + hash_it('qwerty', salting=True, salt_length=10, local_parameter='word') |
| 63 | + ``` |
| 64 | + |
| 65 | + #### Checking |
| 66 | + |
| 67 | + You can check your password for strength or validity: |
| 68 | + |
| 69 | + ```py |
| 70 | + check_it('qwerty') |
| 71 | + ``` |
| 72 | + |
| 73 | + **check_it** method has the following parameters: |
| 74 | + * **password** - (string) |
| 75 | + * **check_type** - (string). *Optional*. There are 2 check types: strength and valid. Default: *strength* |
| 76 | + - *strength* check type will return number indicating strength of your password. If strength more than 10 then the password is strong. |
| 77 | + - *valid* check type will return True or False whether password has 'stop chars' or not. You have to specify *stop_chars* to use this check type. |
| 78 | + * **stop_chars** - (string). *Optional*. Use to specify stop characters to check your password for validity. |
| 79 | + |
| 80 | + ##### Examples: |
| 81 | + |
| 82 | + ```py |
| 83 | + check_it('123some-password321') |
| 84 | + check_it('qwerty', check_type='valid', stop_chars='0123456789') |
| 85 | + ``` |
| 86 | + |
| 87 | + #### Generating |
| 88 | + |
| 89 | + You can generate password with your own parameters: |
| 90 | + |
| 91 | + ```py |
| 92 | + generate_it() |
| 93 | + ``` |
| 94 | + |
| 95 | + **generate_it** method has the following parameters: |
| 96 | + * **strength** - (int). *Optional*. Defalut: *2* |
| 97 | + - **1** - *low*. Using letters only. |
| 98 | + - **2** - *medium*. Using letters and numbers. |
| 99 | + - **3** - *high*. Using letters, numbers and symbols. |
| 100 | + * **length** - (int). *Optional*. Use to specify password length. Default: *12* |
| 101 | + |
| 102 | + ##### Examples: |
| 103 | + |
| 104 | + ```py |
| 105 | + generate_it(strength=2) |
| 106 | + generate_it(strength=3, length=3) |
| 107 | + ``` |
| 108 | + |
| 109 | + License |
| 110 | + ---- |
| 111 | + |
| 112 | + MIT |
| 113 | + |
| 114 | + # |
| 115 | + Pypasswords uses one open source package to work properly: |
| 116 | + |
| 117 | + * [zxcvbn](https://github.com/dropbox/zxcvbn) - password strength estimator |
| 118 | + |
| 119 | + And of course **pypasswords** itself is open source with a [public repository](https://github.com/CosmoSt4r/pypasswords) |
| 120 | + on GitHub. |
| 121 | +Keywords: password,passwords,check,hash,simple |
| 122 | +Platform: UNKNOWN |
| 123 | +Classifier: Development Status :: 4 - Beta |
| 124 | +Classifier: Intended Audience :: Developers |
| 125 | +Classifier: Topic :: Software Development :: Build Tools |
| 126 | +Classifier: Topic :: Security :: Cryptography |
| 127 | +Classifier: License :: OSI Approved :: MIT License |
| 128 | +Classifier: Programming Language :: Python :: 3 |
| 129 | +Classifier: Programming Language :: Python :: 3.4 |
| 130 | +Classifier: Programming Language :: Python :: 3.5 |
| 131 | +Classifier: Programming Language :: Python :: 3.6 |
| 132 | +Classifier: Programming Language :: Python :: 3.7 |
| 133 | +Description-Content-Type: text/markdown |
0 commit comments