Skip to content

Instantly share code, notes, and snippets.

@jimathyp
jimathyp / rsa.py
Created October 19, 2016 03:11 — forked from tylerl/rsa.py
RSA Explained in Python
#!/usr/bin/env python
# This example demonstrates RSA public-key cryptography in an
# easy-to-follow manner. It works on integers alone, and uses much smaller numbers
# for the sake of clarity.
#####################################################################
# First we pick our primes. These will determine our keys.
#####################################################################
@jimathyp
jimathyp / .gitignore
Last active October 19, 2016 02:48 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# ignore notepadplusplus backup files