Skip to content

Instantly share code, notes, and snippets.

View hamayanhamayan's full-sized avatar

hamayanhamayan hamayanhamayan

View GitHub Profile
1 2 -> -1
1 3 -> -1
1 4 -> -1
1 5 -> -1
1 6 -> -1
1 7 -> -1
1 8 -> -1
1 9 -> -1
1 10 -> -1
1 11 -> -1
#include<bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()
//#pragma GCC optimize ("-O3")
using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); }
typedef long long ll; const int inf = INT_MAX / 2; const ll infl = 1LL << 60;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a = b; return 1; } return 0; }
from Crypto.Cipher import ARC4
with open('logo.png') as f:
rowdata = f.read()
key = rowdata[0:0x20]
enc = rowdata[0x20:]
cipher = ARC4.new(key)
dec = cipher.decrypt(enc)