Skip to main content

Open Kage's useful Auth methods But, this is develope version. So, suddenly it will be big change when I got some more good idea.

Install

pip3 install kauth

Custom Dictionary Class

Contents

  1. Added New commands

    1. is_right_password() : Check requirements in the password string
    2. gen_random() : Generate random password
    3. enc_passwd() : Encript password
    4. dec_passwd() : decript password
    5. is_right_email() : check right email format
    6. is_right_domain() : check right domain (not yet)
    7. update_password_to_system() : update password to Linux system
    8. check_password_to_system() : check username and password from the linux system
    9. read_otp_key_from_user_account() :
    10. send_otp_to_email() : Send my opt number to email
    11. verify_otp() : Verify OTP number
  2. requirements requirement package names are crypt, pyotp, pyqrcode, kmisc

  3. Initialize Auth method

import kAuth 
  1. is_right_password() : Check right password or not
  • default check everything
  • RL=True/False : Check Low characters
  • RC=True/False : Check Capital characters
  • RI=True/False : Check Integer (0-9)
  • RS=True/False : Check Symbols
  • LN=8 : Password length (default 8)
>>> password='Test Password'
>>> rt=is_right_password(password,RI=False,RS=False)
    if rt[0]:
        print('right format')
    else:
        print(rt[1])
  1. gen_random() : generate random string
  • req=[,,] : requirements
    • 'str' : Strings (Capital and Lower)
    • 'lower' : lower strings
    • 'captial' : Capital strings
    • 'int' : integer (0-9)
    • 'sym' : symbols
  • length : make a string length (default 8)
>>> print(gen_random(req=['lower','int'],length=12))
'h06ypaeay1mn'

Release files for kauth 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kauth 1.0.9
File Size Uploaded
kauth-1.0.9.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kauth 1.0.9
File Interpreter ABI Platform
kauth-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / kauth-1.0.9.tar.gz

Download URL kauth-1.0.9.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dc6d9708cf6667f5169a7d3170695d7c48c292ce24623edf14b01cd19e6925a4
BLAKE2b-256 checksum
How to use checksums
75ef69fcc98be4f7886a1ed39ae9466e7ac9b49f7434155ef191824715b1f634
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.18

Release files / kauth-1.0.9-py3-none-any.whl

Download URL kauth-1.0.9-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b30032cc522a799a2ad9f8f046b6bce2af08829851f6e6137634ee684f69804d
BLAKE2b-256 checksum
How to use checksums
cedebbbf0da26d3ec0f73eceb725aeb7d71ab8e86638066c3c79eabe8ea19e58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.18

Release history Release notifications | RSS feed

This release

1.0.9 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page