Giter Site home page Giter Site logo

b3ds's Introduction

b3DS

A 3DS/New 3DS Rom Decryptor and Encrypter

If anyone wants to improve on the code, feel free to do so.

Prerequisites

  • Python 2.7+
  • pip
  • pycrypto

Installation

After you've installed the latest version of Python 2, run pip install pycrypto in command prompt.

Usage

python b3DSEncrypt.py "File location of rom" eg. C:\Users\User\Downloads\New Super Mario Bros. 2 (USA).3ds

Status

Supports all known crypto-types:

  • Normal (Key 0x2C)
  • 7.x (Key 0x25)
  • New3DS 9.3 (Key 0x18)
  • New3DS 9.6 (Key 0x1B)

b3ds's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

b3ds's Issues

.CIA File Support?

Can this be updated to include .CIA file support?

While it can be done on a 3DS, it can be a hassle to do when the thing's battery is dead and you have to transfer stuff back and forth when you already have the file on the desktop.

This cross-platform tool is pretty great and adding this feature would make it basically mandatory to use for Linux/Mac users who either don't have their 3DS on-hand or just want to do it faster since similar tools made for Windows don't work with Wine

NEED HELP: switch to python3 and cryptography

I tried to make your script work on my machine (ubuntu 22.04, python3.10), but failed due discontinued developement of pyCrypto and missing support for python3(.10).

So I tried to port your script to cryptography (https://cryptography.io/) which is actively developed. Everything seems to work fine, the roms are decrypted. But they won't open in citra, actually citra crashes... Other decrypted roms work quiet well, but the ones generated by the script seem to have an issue.

I forked you repository and commited my changes:

  • branch with port to python3, but keeping pycrypto: f7826eb
  • branch with port to python3 and switching to cryptography-module: 52059d1

Both seem to decrypt the files successfully, but with different outcome:

  • some roms load/run fine in citra (e.g. Puzzler Brain Games, Yoshis New)
  • some roms crash citra on loading (e.g. Luigi's Mansion)

So the problem might not be the crypto-backend (pycrypto or cryptography), but the python3 port or the algorithm itself.

If you are still into the topic, I would highly appreciate your help on the matter :) Maybe you have an idea, whats going wrong.

Good job by the way!
Cheers!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.