This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://rfc3161.ai.moda | |
https://rfc3161.ai.moda/adobe | |
https://rfc3161.ai.moda/microsoft | |
https://rfc3161.ai.moda/apple | |
https://rfc3161.ai.moda/any | |
http://rfc3161.ai.moda | |
http://timestamp.digicert.com | |
http://timestamp.globalsign.com/tsa/r6advanced1 | |
http://rfc3161timestamp.globalsign.com/advanced | |
http://timestamp.sectigo.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% Make everything look better. | |
%% http://tex.stackexchange.com/questions/553/what-packages-do-people-load-by-default-in-latex | |
%% http://www.howtotex.com/packages/9-essential-latex-packages-everyone-should-use/ | |
\usepackage{microtype} | |
%% Shrink space around figures. | |
%% This beats manually adding negative \vspace commands everywhere. | |
%\setlength{\textfloatsep}{0pt} | |
%\setlength{\textfloatsep}{20pt plus 2pt minus 4pt} | |
%\setlength{\textfloatsep}{10pt plus 2pt minus 4pt} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def encrypt_RSA(public_key_loc, message): | |
''' | |
param: public_key_loc Path to public key | |
param: message String to be encrypted | |
return base64 encoded encrypted string | |
''' | |
from M2Crypto import RSA, BIO | |
key = open(public_key_loc, "r").read() | |
pubkey = str(key).encode('utf8') | |
bio = BIO.MemoryBuffer(pubkey) |