Skip to content

Instantly share code, notes, and snippets.

View ratasxy's full-sized avatar

Juan Alfredo Salas Santillana ratasxy

View GitHub Profile
#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;
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'