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
```javascript
pip3 install kAuth
```
# Custom Dictionary Class
## Contents
1. Added New commands
1. is_right_password() : Check requirements in the password string
1. gen_random() : Generate random password
1. enc_passwd() : Encript password
1. dec_passwd() : decript password
1. is_right_email() : check right email format
1. is_right_domain() : check right domain (not yet)
1. update_password_to_system() : update password to Linux system
1. check_password_to_system() : check username and password from the linux system
1. read_otp_key_from_user_account() :
1. send_otp_to_email() : Send my opt number to email
1. verify_otp() : Verify OTP number
1. requirements
requirement package names are crypt, pyotp, pyqrcode, kmisc
1. Initialize Auth method
```javascript
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)
```javascript
>>> 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)
```javascript
>>> print(gen_random(req=['lower','int'],length=12))
'h06ypaeay1mn'
```
Raw data
{
"_id": null,
"home_page": "https://github.com/kagepark/kAuth",
"name": "kAuth",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Kage Park",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/fb/c7/7758ff98e739d591dc78e3e0781710bdc551e5d69209e98a07031c542495/kAuth-1.0.8.tar.gz",
"platform": null,
"description": "Open Kage's useful Auth methods\nBut, this is develope version.\nSo, suddenly it will be big change when I got some more good idea.\n\n# Install\n```javascript\npip3 install kAuth\n```\n\n# Custom Dictionary Class\n\n## Contents\n1. Added New commands\n 1. is_right_password() : Check requirements in the password string\n 1. gen_random() : Generate random password\n 1. enc_passwd() : Encript password\n 1. dec_passwd() : decript password\n 1. is_right_email() : check right email format\n 1. is_right_domain() : check right domain (not yet)\n 1. update_password_to_system() : update password to Linux system\n 1. check_password_to_system() : check username and password from the linux system\n 1. read_otp_key_from_user_account() : \n 1. send_otp_to_email() : Send my opt number to email\n 1. verify_otp() : Verify OTP number\n\n1. requirements\nrequirement package names are crypt, pyotp, pyqrcode, kmisc\n\n1. Initialize Auth method \n\n```javascript\nimport kAuth \n```\n\n1. is_right_password() : Check right password or not\n - default check everything\n - RL=True/False : Check Low characters\n - RC=True/False : Check Capital characters\n - RI=True/False : Check Integer (0-9)\n - RS=True/False : Check Symbols\n - LN=8 : Password length (default 8)\n\n```javascript\n>>> password='Test Password'\n>>> rt=is_right_password(password,RI=False,RS=False)\n if rt[0]:\n print('right format')\n else:\n print(rt[1])\n```\n\n1. gen_random() : generate random string\n - req=[,,] : requirements\n - 'str' : Strings (Capital and Lower)\n - 'lower' : lower strings\n - 'captial' : Capital strings\n - 'int' : integer (0-9)\n - 'sym' : symbols\n - length : make a string length (default 8)\n\n```javascript\n>>> print(gen_random(req=['lower','int'],length=12))\n'h06ypaeay1mn'\n```\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Authentication",
"version": "1.0.8",
"project_urls": {
"Homepage": "https://github.com/kagepark/kAuth"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "904c9524c0ea5b2505491a84882f024813a88c5ac73a633e96d47bf137de1564",
"md5": "15ead3113c1afcff9c27460e671681b3",
"sha256": "ae383506c07140a3b854ed22fba529d45b1efdcbf9d6fb57cc6cfadd52f87f5c"
},
"downloads": -1,
"filename": "kAuth-1.0.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "15ead3113c1afcff9c27460e671681b3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4096,
"upload_time": "2023-11-01T04:58:50",
"upload_time_iso_8601": "2023-11-01T04:58:50.954457Z",
"url": "https://files.pythonhosted.org/packages/90/4c/9524c0ea5b2505491a84882f024813a88c5ac73a633e96d47bf137de1564/kAuth-1.0.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fbc77758ff98e739d591dc78e3e0781710bdc551e5d69209e98a07031c542495",
"md5": "1af04ad8c9b7f3e1738c9b391672d782",
"sha256": "695a12304caa39223be004055b0045e0a1d15f343aa892398017608fb04c98a9"
},
"downloads": -1,
"filename": "kAuth-1.0.8.tar.gz",
"has_sig": false,
"md5_digest": "1af04ad8c9b7f3e1738c9b391672d782",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4374,
"upload_time": "2023-11-01T04:58:52",
"upload_time_iso_8601": "2023-11-01T04:58:52.739464Z",
"url": "https://files.pythonhosted.org/packages/fb/c7/7758ff98e739d591dc78e3e0781710bdc551e5d69209e98a07031c542495/kAuth-1.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-01 04:58:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kagepark",
"github_project": "kAuth",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "kauth"
}