Skip to content

Instantly share code, notes, and snippets.

@cypher-nullbyte
cypher-nullbyte / rsa.py
Created September 14, 2020 05:59 — forked from ErbaAitbayev/rsa.py
Simple Python RSA for digital signature with hashing implementation. For hashing SHA-256 from hashlib library is used.
import random
from hashlib import sha256
def coprime(a, b):
while b != 0:
a, b = b, a % b
return a
@cypher-nullbyte
cypher-nullbyte / CeaserCipher.py
Created August 19, 2020 11:24
Ceaser Cipher Encryption and Decryption in python | https://youtu.be/0T7wWlst4Io
'''
author: cYpHeR
Github: cypher-nullbyte
'''
# -----------------------
# We assume that our input text is only lowercase string of alphabets without spaced
# LET US START
def Ceaser_encrypt(text,s):