Skip to content

Instantly share code, notes, and snippets.

View ajaysjournal's full-sized avatar

Ajay Ramesh ajaysjournal

View GitHub Profile
@dendisuhubdy
dendisuhubdy / rsa_p36.py
Last active August 1, 2022 15:07
RSA Implementation Running on Python 3.6
"""
Implementation of RSA cryptography
using samples of large numbers
"""
import random
import sys
import math
from random import randrange
@CasiaFan
CasiaFan / asynchronous_caching_video_stream.py
Last active July 17, 2024 22:46
Asynchronous caching and analysis of video stream with opencv and multithreading
import cv2
from redis import ConnectionPool, Redis
import numpy as np
import json, time
from multithreading import Thread, Event
redis_config = {"server": "localhost",
"passwd": '',
"port": '6379',
"db": 0}