Skip to content

Instantly share code, notes, and snippets.

View nnn1590's full-sized avatar
💥
ランランルー!

ーーー nnn1590

💥
ランランルー!
View GitHub Profile
@nnn1590
nnn1590 / mii-qr.py
Created May 12, 2021 03:31 — forked from jaames/mii-qr.py
Decrypt Mii QR code data from 3DS / Wii U / Miitomo
# 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:
@nnn1590
nnn1590 / TurnipPrices.cpp
Created April 12, 2020 09:06 — forked from Treeki/TurnipPrices.cpp
AC:NH turnip price calculator
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
// munged from https://github.com/simontime/Resead
namespace sead
{
class Random
{