Skip to content

Instantly share code, notes, and snippets.

View openapi.json
{
"openapi": "3.0.1",
"info": {
"title": "GSF Access Control Service API",
"description": "This WebAPI is for integration between VMS software with [GSF Access Control](https://www.gsfcorp.com). For security reason, communication must be done in HTTPS and you need to provide the api key `apikey` on every transaction for authorization.",
"contact": {
"email": "dennis@gsfcorp.com"
},
"version": "1.0.0"
},
@dennislwy
dennislwy / aes.py
Last active May 6, 2021
Python helper class to perform AES encryption, decryption with CBC Mode & PKCS7 Padding
View aes.py
# AES helper class for pycrypto
# Copyright (c) Dennis Lee
# Date 22 Mar 2017
# Description:
# Python helper class to perform AES encryption, decryption with CBC Mode & PKCS7 Padding
# References:
# https://www.dlitz.net/software/pycrypto/api/2.6/
# http://japrogbits.blogspot.my/2011/02/using-encrypted-data-between-python-and.html
@dennislwy
dennislwy / rsa.py
Last active Oct 1, 2020
Python helper class to perform RSA encryption, decryption, signing, verifying signatures & generate new keys
View rsa.py
# RSA helper class for pycrypto
# Copyright (c) Dennis Lee
# Date 21 Mar 2017
# Description:
# Python helper class to perform RSA encryption, decryption,
# signing, verifying signatures & keys generation
# Dependencies Packages:
# pycrypto