smartpasslib - Cross-platform library for generating smart passwords.
This library allows you to generate smart passwords. Smart passwords are passwords that are not stored anywhere, but are generated "on the fly". Examples of applications created using this unique technology:
- Smart Password Generator (Console)
- Smart Password Manager (Console)
- Smart Password Manager (Telegram Bot)
- Smart Password Manager (Desktop)
Author and developer: A.A. Suvorov.
- Linux: All.
- Windows: 7/8/10/11?.
- Termux (Android).
- Code refactoring.
- New methods added.
- Some methods marked as deprecated.
WARNING!!! Some methods are marked as deprecated and will be removed in future versions.
pip install smartpasslib
from smartpasslib import SmartPasswordMaster
from smartpasslib import SmartPasswordManager
login = 'login'
secret = 'secret'
length = 15
smart_password_master = SmartPasswordMaster()
smart_password = smart_password_master.generate_smart_password(login=login, secret=secret, length=length)
smart_password2 = smart_password_master.generate_smart_password(login=login, secret=secret, length=length)
check_passwords = smart_password == smart_password2 # True
key = smart_password_master.generate_public_key(login, secret)
check_data = smart_password_master.check_public_key(login, secret, key) # True
check_data2 = smart_password_master.check_public_key(login, 'secret2', key) # False
smart_password_manager = SmartPasswordManager()
smart_password_manager.add_smart_password(smart_password)
smart_password = smart_password_manager.get_smart_password(smart_password.login)
python -m build
orpython setup.py sdist bdist_wheel
twine upload dist/*
***
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
***
Licensed under the terms of the BSD 3-Clause License
(see LICENSE for details).
Copyright © 2018-2024, A.A. Suvorov
All rights reserved.