[python]Usage examples of pyvault2

Introduction I am using hashicorp vault to store secrets of devices, and I am writing my own functions in python for my personal usage. There is a hashicorp vault api wrapper module known as hvac, at first I attempted to use hvac but I found it to be extremely difficult to use and not enough … Continue reading [python]Usage examples of pyvault2

[python] asa library

I created an asa library which contains functions require to perform some asa operations, this is not a complete set, there are some sets which I have not tested yet, the below functions are all tested and working.

[python]Create table with SQLAlchemy

I am using the raw module of SQLAlchemy, and not the Flask's version of SQLAlchemy, Flask's version is easier to use than the original as more abstraction has been implemented by Flask. This post is to record how tables can be created. Requirements.txt These python libraries are necessary, for this example I am using Mariadb … Continue reading [python]Create table with SQLAlchemy

[python]Check if randomly generated number is a prime with decorator

In this script a random number is generated, before the number is passed the number is checked if it is a prime number if it is then the number is passed. I can either do this with calling a function that checks for prime number validity or use a decorator. A decorator is a function … Continue reading [python]Check if randomly generated number is a prime with decorator

[python]RSA mathematics learning tool

I wrote this script to teach myself on how to do RSA key generation (public key e and private key d), and how to encrypt and decrypt message mathematically. This tool will also be used as a refresher if I have forgotten how to calculate the RSA mathematics. This learning tool presents how the Euclidean … Continue reading [python]RSA mathematics learning tool