Metadata-Version: 1.1
Name: tkgetpassword
Version: 1.2.2
Summary: Logins to enter password, create password, change password and login, simple way to enter password in tkinter, Tkinter.
Home-page: https://github.com/LeonardoReichert/tkgetpassword/releases/tag/v1.2.2
Author: Leonardo A. Reichert
Author-email: leoreichert5000@gmail.com
License: MIT
Description: Instalation:
        ============
        ::
        
           pip install tkgetpassword
        
        Functions to create password entries:
        =====================================
        
        askcreatepassword, askoldpassword, askchangepassword
        
        1- **askcreatepassword**\ ( ) Use on create a new password, return (str: a new password)
        
        2- **askoldpassword**\ ( ) Use on get old password and check with
           functions Sha256 (HASH) or other, return (str: old password)
        
        3- **askchangepassword**\ ( ) Use on change old password, return (str:
           old password, str: new passwod)
        
        Creation password:
        ==================
        
        ::
        
           from tkinter import Tk
           import tkgetpassword as tkpassw
        
           root = Tk()
        
           newpass = tkpassw.askcreatepassword(root, minlenght=12)
        
           root.mainloop()
        
        
        .. figure:: https://github.com/LeonardoReichert/tkgetpassword/blob/main/examples/createpass.png?raw=true
          :align: center
        
        
        Auth password:
        ==============
        
        ::
        
           import hashlib
        
           thehash = hashlib.sha256( newpass.encode() ).hexdigest()
        
           oldpass = tkpassw.askoldpassword(root, thehash)
        
        
        .. figure:: https://github.com/LeonardoReichert/tkgetpassword/blob/main/examples/oldpass.png?raw=true
          :align: center
        
        
        Change password
        ===============
        
        ::
        
           oldpass , newpass = tkpassw.askchangepassword(root, hashed)
                   
           if not (oldpass and newpass):
                 print("form change password is canceled")
        
        
        .. figure:: https://github.com/LeonardoReichert/tkgetpassword/blob/main/examples/changepass.png?raw=true
          :align: center
        
        
        use help(module) :
        ==================
        
        ::
        
           help(tkgetpassword)
        
        Options \**kw use:
        ==================
        
        ::
        
               -title: optional title str
               -message: optional message str
               
               -font1: optional (font of label passwords)
               -font2: optional (font of passwords)
               
               -showchar: default is "*"
               
               -minlenght: default 0 (no limits)
               -maxlenght: default 0 (no limits)
               
               -asserthash: a string hash to authenticate (example:
                       a representation hash: hashlib.new("sha256", bytesPassword).hexdigest()
                       ignored by askcreatepassword(...) function
               -namesha: default used is "sha256",
                       used on hashlib.new(namesha, passw).hexdisgest() method
                       
               -textbutton: default is a tuple ("Ok", "Cancel")
               -stylebutton: default is "TButton"
        
        \**\* News updates \**\*
        ============================
        
        ::
        
            from release 1.1.1: added variable "version"
        
Keywords: tkinter,password,login,authentication,password,tk,sha256,hash,gui
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
