Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.
/ python-security2 Public archive

💻 (Live Link) (12-Aug-2023) Python Security 2 with Cryptography module and Fernet Symmetric encryption and Django Signing.

License

Notifications You must be signed in to change notification settings

kkamara/python-security2

Repository files navigation

selenium-py.png

python-security2

💻 (12-Aug-2023) Python Security 2 with Cryptography module and Fernet Symmetric encryption and Django Signing.

Installation

cp .env.example .env
pip3 install virtualenv && \
  virtualenv env && \
  source env/bin/activate

Usage

# alias py3="python3"
# Run encryption
py3 manage.py crypt --subject='test'

py3 manage.py crypt2 --subject_key='test' --subject_val='secret'

Make changes to crypt.py to update the crypt command.

Run Web Server

py3 manage.py runserver 3000
# http://localhost:3000

Using Docker?

alias compose='docker-compose -f local.yml'
compose build
compose up
# http://localhost:3000

iPython Django Shell

  py3 manage.py shell -i ipython

API

  py3 manage.py show_urls

View the api collection here.

Admin

Admin creds are set in ./compose/local/django/start

export DJANGO_SUPERUSER_PASSWORD=secret

py3 manage.py createsuperuser \
  --username admin_user \
  --email admin@django-app.com \
  --no-input

Cache react app & view templates

py3 manage.py collectstatic

Mail Server

docker-mailhog.png

Mail environment credentials are at .env.

The mailhog docker image runs at http://localhost:8025.

Misc

See your Python code do web browsing on your screen with GUI.

See python react boilerplate app.

See python docker skeleton.

See python desktop mobile.

See python for finance.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

BSD

About

💻 (Live Link) (12-Aug-2023) Python Security 2 with Cryptography module and Fernet Symmetric encryption and Django Signing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages