Name | uconra JSON |
Version |
1.0.4
JSON |
| download |
home_page | None |
Summary | Application security authenticater |
upload_time | 2024-09-22 04:39:04 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.11 |
license | MIT License Copyright (c) 2024 UCONRA Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
security
password
hashing
applications
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# UCONRA
## An application security hasher, tokenization and SMTP creator
uconra is a simple application Authentication security
password hasher and basic tokenization and smtp creator for
basic python, flask or django applications
### Installation
'''python
pip install uconra
'''
# Different usages for different use cases.
### Usage for password hashing and email validation
'''python
from uconra.register import Register
pass_word = 'enter_your_password'
user_email = 'cody@gmail.com'
email = str(register.userEmail(user_email))
password = register.userPassword(pass_word)
print(password)
'''
### Usage for creating basic j_wt token
'''python
from uconra.j_wt import JWT
token = JWT()
login_token = token.generate_jwt_token('cody@gmail.com', key='3uiojjkskdpeisjdjfl')
print(f"encoded jwt token : {login_token}")
decode_login_token = token.decode_jwt_token(login_token)
print(decode_login_token['email'])
print(f"decoded jwt token : {decode_login_token}")
'''
### smtp basic usage setup
'''python
from uconra.smtp_mail import SMTP_Mail
confirm_message = MailMessage()
"""
app_pw = 'hjdj j3l2 guess whaid'
myMail = 'cody@gmail.com'
mail_server = 'smtp.gmail.com:587'
ehlo = 'Gmail'
message = 'Here goes your message'
user = 'user@gmail.com'
OTP = 1324
"""
sendMail = SMTP_Mail(
appKey=app_pw, userMail=email,
senderMail=myMail, serverEhlo=ehlo,
smtpServer=mail_server,
subject='TEST SUBJECT', userName=username,
message=confirm_message.confirm_message(token=login_token, otp=OTP),
)
sendMail.sendMail()
'''
### Mail message for the above smtp usage
'''python
from uconra.email_message import MailMessage
message = MailMessage()
print(message.confirm_message(token=7890))
'''
Raw data
{
"_id": null,
"home_page": null,
"name": "uconra",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "security, password, hashing, applications",
"author": null,
"author_email": "motchello <motchello@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/02/3a/c7bf1d833c8f8bdc97a0e35a4d79999ba65d39b28fc6127e0e32e29e294f/uconra-1.0.4.tar.gz",
"platform": null,
"description": "# UCONRA\r\n## An application security hasher, tokenization and SMTP creator\r\n\r\nuconra is a simple application Authentication security \r\npassword hasher and basic tokenization and smtp creator for\r\nbasic python, flask or django applications\r\n\r\n### Installation\r\n'''python\r\n\r\n pip install uconra\r\n'''\r\n\r\n# Different usages for different use cases.\r\n\r\n### Usage for password hashing and email validation\r\n\r\n'''python\r\n\r\n from uconra.register import Register\r\n\r\n pass_word = 'enter_your_password'\r\n user_email = 'cody@gmail.com'\r\n\r\n email = str(register.userEmail(user_email))\r\n\r\n password = register.userPassword(pass_word)\r\n\r\n print(password)\r\n\r\n'''\r\n\r\n### Usage for creating basic j_wt token\r\n'''python\r\n \r\n from uconra.j_wt import JWT\r\n\r\n token = JWT()\r\n\r\n login_token = token.generate_jwt_token('cody@gmail.com', key='3uiojjkskdpeisjdjfl')\r\n\r\n print(f\"encoded jwt token : {login_token}\")\r\n\r\n decode_login_token = token.decode_jwt_token(login_token)\r\n\r\n print(decode_login_token['email'])\r\n\r\n print(f\"decoded jwt token : {decode_login_token}\")\r\n'''\r\n\r\n### smtp basic usage setup\r\n\r\n'''python\r\n \r\n \r\n from uconra.smtp_mail import SMTP_Mail\r\n\r\n confirm_message = MailMessage()\r\n \"\"\"\r\n app_pw = 'hjdj j3l2 guess whaid'\r\n myMail = 'cody@gmail.com'\r\n mail_server = 'smtp.gmail.com:587'\r\n ehlo = 'Gmail'\r\n message = 'Here goes your message'\r\n user = 'user@gmail.com'\r\n OTP = 1324\r\n \"\"\"\r\n\r\n sendMail = SMTP_Mail(\r\n appKey=app_pw, userMail=email,\r\n senderMail=myMail, serverEhlo=ehlo,\r\n smtpServer=mail_server,\r\n subject='TEST SUBJECT', userName=username,\r\n message=confirm_message.confirm_message(token=login_token, otp=OTP),\r\n )\r\n \r\n sendMail.sendMail()\r\n\r\n'''\r\n\r\n### Mail message for the above smtp usage\r\n\r\n'''python\r\n\r\n from uconra.email_message import MailMessage\r\n\r\n message = MailMessage()\r\n\r\n print(message.confirm_message(token=7890))\r\n'''\r\n\r\n\r\n\r\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2024 UCONRA Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Application security authenticater",
"version": "1.0.4",
"project_urls": {
"Homepage": "https://github.com/Uconra/uconra",
"Issues": "https://github.com/Uconra/uconra/issues"
},
"split_keywords": [
"security",
" password",
" hashing",
" applications"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ef0934404749451392eada6ceaa1984562fe0ac821b58aa89261478104f14644",
"md5": "53d99567cafe1055a1935b8e8f814170",
"sha256": "23940e3737c588ac3f06f913265a51d2b6a82e23fb96855626fe1a52e5a0934c"
},
"downloads": -1,
"filename": "uconra-1.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "53d99567cafe1055a1935b8e8f814170",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 9906,
"upload_time": "2024-09-22T04:39:03",
"upload_time_iso_8601": "2024-09-22T04:39:03.227449Z",
"url": "https://files.pythonhosted.org/packages/ef/09/34404749451392eada6ceaa1984562fe0ac821b58aa89261478104f14644/uconra-1.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "023ac7bf1d833c8f8bdc97a0e35a4d79999ba65d39b28fc6127e0e32e29e294f",
"md5": "0f2b24995cb30459ff2f6c9bef9297a3",
"sha256": "78891cf72e6ccbe1f1c3814cd7467b51f51c5274cb68869db73d8b37ded77fb9"
},
"downloads": -1,
"filename": "uconra-1.0.4.tar.gz",
"has_sig": false,
"md5_digest": "0f2b24995cb30459ff2f6c9bef9297a3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 9201,
"upload_time": "2024-09-22T04:39:04",
"upload_time_iso_8601": "2024-09-22T04:39:04.709431Z",
"url": "https://files.pythonhosted.org/packages/02/3a/c7bf1d833c8f8bdc97a0e35a4d79999ba65d39b28fc6127e0e32e29e294f/uconra-1.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-22 04:39:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Uconra",
"github_project": "uconra",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "uconra"
}