Skip to content

Instantly share code, notes, and snippets.

Avatar

Juan Alfredo Salas Santillana ratasxy

View GitHub Profile
View Crypto
import os, random, struct
from Crypto.Cipher import AES
from Crypto import Random
from Crypto.PublicKey import RSA
import Crypto.Util.number
import smtplib
import base64
def encrypt_file(key, in_filename, chunksize=64*1024):
out_filename = in_filename + '.crypto'
View gist:5938338
#include <iostream>
#include <algorithm>
#include <cstring>
#include <cstdio>
#define maxn 300001
typedef long long bigNum;
bigNum tree[maxn], data[maxn], sorted[maxn];
using namespace std;
You can’t perform that action at this time.