Saturday 16 December 2023

Django HMAC Authentication 3.0.0 - Camellia Cipher support

 django-hmac-authentication package now supports Camellia cipher along with existing AES. User hmac secrets are secured with AES or Camellia 256 and chosen at random. To use feature just update package and run migrations.

pip install -U django-hmac-authentication

python manage.py migrate

version: 3.0.0

PyPi: https://pypi.org/project/django-hmac-authentication/

GitHub: https://github.com/harisankar-krishna-swamy/django_hmac_authentication


 

Friday 25 August 2023

Django HMAC Authentication 2.0.0

 Checkout a new version of Django HMAC Authentication on Pypi and code on GitHub. Update includes namespaced settings from previous versions.

Built on Debian, KDE and CI/CD on GitLab

GitHub: https://github.com/harisankar-krishna-swamy/django_hmac_authentication

PyPi: https://pypi.org/project/django-hmac-authentication/

Sunday 21 May 2023

Django HMAC Authentication

Checkout a Python package for Django HMAC authentication. Features include


1. Django model with HMAC shared encrypted secret


2. Authentication class HMACAuthentication


3. Requests timeout


4. Management command or a configured url to get key


5. Javascript and Python client examples


Check it out on


PyPI: https://pypi.org/project/django-hmac-authentication/


GitHub: https://github.com/harisankar-krishna-swamy

Tuesday 11 April 2023

Django salted api tokens

Django token authentication with hashed, salted tokens

Django model with token id and token protected with hash and salt

Authentication class using protected api tokens.


Code @ Github: https://github.com/harisankar-krishna-swamy/django_salted_api_tokens

Pypi: https://pypi.org/project/django-salted-api-tokens/

 

Sunday 19 March 2023

A Django Cacheable Model

 A cacheable model for django.

Features:

A generic way of creating cache keys from Django model fields

Retrieve django models from cache with field values (cache on the way if cache missed)

Retrieve all the model instances (suitable for small set of models)


GitHub: https://github.com/harisankar-krishna-swamy/django_cacheable_model

Pypi: https://pypi.org/project/django-cacheable-model/

Thursday 12 November 2020

Data structures using Python: Coils 3.0.1

1) Follow Hari's python datastructure library on GitHub


2) Install

pip install pycoils

3) License

Apache2 License

4) New Features

11 November 2020:

Bit vector data structure

5) List of data structures

Stack using python list
Queue using python list
Heap (Min & Max) using python list.
Binary Search Tree with link inversion traversal
SplayTree -do-
LinkedList
DoublyLinkedList
SeperateChainHashTable (3 types of chaining using LinkedList, SplayTree, BinarySearchTree)
DisjointSetWithUnion (uses uptree nodes and path compression)
PriorityQueues
InternStore
Bit Vector

6) Examples and usage

Refer: pycoils/examples package