Skip to content

Instantly share code, notes, and snippets.

Avatar

TwistedUmbrellaX AbandonedCart

View GitHub Profile
@AbandonedCart
AbandonedCart / mii-qr.py
Created Dec 17, 2022 — forked from jaames/mii-qr.py
Decrypt Mii QR code data from 3DS / Wii U / Miitomo
View mii-qr.py
# Decrypt Mii QR codes from 3DS / Wii U / Miitomo
# Usage: python3 <input file> <output file>
# QR docs: https://www.3dbrew.org/wiki/Mii_Maker
from Crypto.Cipher import AES
from sys import argv
key = bytes([0x59, 0xFC, 0x81, 0x7E, 0x64, 0x46, 0xEA, 0x61, 0x90, 0x34, 0x7B, 0x20, 0xE9, 0xBD, 0xCE, 0x52])
with open(argv[1], "rb") as infile, open(argv[2], "wb") as outfile:
@AbandonedCart
AbandonedCart / README.md
Last active Apr 29, 2019 — forked from lopspower/README.md
Hexadecimal Transparency Color Codes
View README.md

Hexadecimal Transparency Color Codes

Setting Color Transparency:

To set 40% transparency for black (#000000), you would preface the number with 66 (#66000000).

Hex Values 100% to 0% Alpha:

@AbandonedCart
AbandonedCart / Decrypter.java
Created Apr 4, 2018 — forked from scotttam/Decrypter.java
encrypt and decrypt with PBKDF2/SHA1 and AES
View Decrypter.java
import javax.crypto.Cipher;
import java.security.spec.KeySpec;
import javax.crypto.spec.PBEKeySpec;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import javax.crypto.SecretKeyFactory;
import java.security.AlgorithmParameters;
import javax.crypto.spec.IvParameterSpec;
public class Decrypter {