Skip to main content

Application security authenticater

Project description

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))

'''

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uconra-1.0.4.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

uconra-1.0.4-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file uconra-1.0.4.tar.gz.

File metadata

  • Download URL: uconra-1.0.4.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for uconra-1.0.4.tar.gz
Algorithm Hash digest
SHA256 78891cf72e6ccbe1f1c3814cd7467b51f51c5274cb68869db73d8b37ded77fb9
MD5 0f2b24995cb30459ff2f6c9bef9297a3
BLAKE2b-256 023ac7bf1d833c8f8bdc97a0e35a4d79999ba65d39b28fc6127e0e32e29e294f

See more details on using hashes here.

Provenance

File details

Details for the file uconra-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: uconra-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for uconra-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 23940e3737c588ac3f06f913265a51d2b6a82e23fb96855626fe1a52e5a0934c
MD5 53d99567cafe1055a1935b8e8f814170
BLAKE2b-256 ef0934404749451392eada6ceaa1984562fe0ac821b58aa89261478104f14644

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page