Skip to main content

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

'''

Metadata

Release files for uconra 1.0.4

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

Source distribution (sdist)

Source distribution for uconra 1.0.4
File Size Uploaded
uconra-1.0.4.tar.gz 9.2 kB Details

Built distribution (wheel)

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

Total release size: 19.1 kB

Release files / uconra-1.0.4.tar.gz

Download URL uconra-1.0.4.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
78891cf72e6ccbe1f1c3814cd7467b51f51c5274cb68869db73d8b37ded77fb9
BLAKE2b-256 checksum
How to use checksums
023ac7bf1d833c8f8bdc97a0e35a4d79999ba65d39b28fc6127e0e32e29e294f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release files / uconra-1.0.4-py3-none-any.whl

Download URL uconra-1.0.4-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23940e3737c588ac3f06f913265a51d2b6a82e23fb96855626fe1a52e5a0934c
BLAKE2b-256 checksum
How to use checksums
ef0934404749451392eada6ceaa1984562fe0ac821b58aa89261478104f14644
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.5

Release history Release notifications | RSS feed

This release

1.0.4 This release

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