Resource icon

LibHac 0.2.0

LibHac is a .NET Framework and .NET Core library for reading and editing file formats used by the Nintendo Switch.

The library can be used either from the attacked .nupkg file, or directly from NuGet.
Note: The uploaded file is a .nupkg file renamed to .zip because GBAtemp doesn't like the .nupkg extension.

Supported formats
  • NCA
  • XCI
  • NAX0
  • PFS0/HFS0/NSP
  • RomFS
  • Save file
  • Package1
  • Package2
  • INI1/KIP1
  • CNMT
  • NACP
  • Ticket
  • PRODINFO
  • Switch NAND and SD card

Additional features
  • Save file editing and signing
  • PFS0 creation
  • Switch key derivation
  • Integrity verification of NCA, XCI, etc.
  • Personalized title key reading
  • Read, parse and display information about a Switch NAND or SD card
  • Extract NCA, RomFS and other formats directly from an SD card or NAND, including patched titles
  • Read NAND directly from a Switch running memloader
  • And more!

Software using LibHac
  • hactoolnet - A hactool-like program for dumping common Switch file formats
  • Ryujinx - A Nintendo Switch emulator
  • SwitchSDTool - Dump NSP files from your Switch's SD card
  • SwitchExplorer - A simple GUI-based NCA explorer (also compatible with NSPs and XCIs)
Change log
- Use a new IStorage interface throughout the library instead of Stream
- Improve AES-XTS performance by ~16x
- Improve AES-CTR performance by 2x
- Add AES-XTS tests
- Add benchmarks for AES-XTS and AES-CTR
- Add the ability to open a decrypted IStorage of an NCA, Package1 or Package2
- Validate NCA, NPDM and package2 signatures
- Add NPDM parsing support
- Allow more disposal methods to cascade down to the base storage
- Support writing version 5 of JournalStorage used in newer save data files
- Fix a fatal save allocation table bug that would occur if the last block of the save data FS was read
- Add a build script
  • Like
Reactions: gnmmarechal
Author
minibar
Downloads
613
Views
1,379
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from minibar

Latest updates

  1. v0.2.0

    A single-exe version of hactoolnet has been added to the downloads for convenience over using an...
General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    I'm doing good, just made my first drink of the day, so better now, Captain and Coke today. I had to cut grass all day, then get my hair cut. I messed with my wifey, she knew I was going to get hair cut, and I went and bought a purple dyed wig, and came home wearing it, she freaked out, thinking I dyed my hair purple, was funny.
    +1
  • SylverReZ @ SylverReZ:
    @BigOnYa, Hey BigOnYa
  • BigOnYa @ BigOnYa:
    Hey hope all is well
    +1
  • SylverReZ @ SylverReZ:
    @BigOnYa, And you too :)
    +1
  • S @ salazarcosplay:
    @BigOnYa how are you doing
  • S @ salazarcosplay:
    any mushroom trip adventures you can share
  • JakobAir @ JakobAir:
    Damn, I haven't been on here in while. My wife and I went on a mushroom trip like 10 years ago. A friend had a PS3TV with the glasses and some racing game. It hit when I was playing the game and I freaked out because I thought I was really driving and crashed.
  • K3Nv2 @ K3Nv2:
    Orange ocean Hawaiian punch is pretty good but @BigOnYa keeps putting vodka in it
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    With enough Vodka everything is good
    +1
  • Xdqwerty @ Xdqwerty:
    Im back
  • Xdqwerty @ Xdqwerty:
    We are having a bbq
  • Sicklyboy @ Sicklyboy:
    Nice! Hopefully the weather is good today?
  • Xdqwerty @ Xdqwerty:
    @Sicklyboy, it's a bit cloudy but Yea it's good
    +1
  • K3Nv2 @ K3Nv2:
    80 for us all that rain then mother nature's like have some sun burn
  • Sicklyboy @ Sicklyboy:
    @Xdqwerty, good weather, good food, what's not to like about that? Hope you have a lovely day dude
  • K3Nv2 @ K3Nv2:
    Got some porkchops marinating in honey teriyaki hope it comes out good
  • Sonic Angel Knight @ Sonic Angel Knight:
    Porkchop was the name of that dog in that one cartoon, DOUG! :P
  • Xdqwerty @ Xdqwerty:
    @Sonic Angel Knight, never watched doug
  • Xdqwerty @ Xdqwerty:
    I might play Roblox again
  • BigOnYa @ BigOnYa:
    Nuh jump back to gdevelop
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i say "play Roblox" not "make games on Roblox"
    Xdqwerty @ Xdqwerty: @BigOnYa, i say "play Roblox" not "make games on Roblox"