Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import sys
import os
from PIL import Image
LRCROP = 600
def process(fpath):
im = Image.open(fpath)
@hungte
hungte / megadecrypter.py
Last active March 16, 2024 15:50
A tool to decrypt mega encrypted link, inspired from https://github.com/denysvitali/megadecrypter/ because installing Crystal-lang is not an easy thing for most people.
#!/usr/bin/env python
# Copyright 2018 Hung-Te Lin. All rights reserved.
# Use of this source code is governed by MIT license.
"""A program to decrypt mega://enc2?.... link.
Inspired from https://github.com/denysvitali/megadecrypter
"""
import base64
import binascii