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,372
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
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @Veho, Stepcroc, I'm stuck.
  • Veho @ Veho:
    Those are monitor lizards you dunce.
    +1
  • SylverReZ @ SylverReZ:
    I'm funny. lol.
  • K3Nv2 @ K3Nv2:
    Eggs and roasted potatoes came out good
  • K3Nv2 @ K3Nv2:
    Watching the first omen and so far it's not the priest doing the scaring
  • Veho @ Veho:
    Shouldn't the kid be the scary one?
  • K3Nv2 @ K3Nv2:
    The second omen: the chior boy gets his revenge
  • Veho @ Veho:
    Reverse exorcist: it's when you hire a demon to remove the priest out of a small child.
  • K3Nv2 @ K3Nv2:
    Hire Kendrick Drake possessed a minor again
  • Veho @ Veho:
    Yeah, I'd run away from his singing too.
  • K3Nv2 @ K3Nv2:
    I wonder if Drakes still allowed to use his Instagram
  • ZeroT21 @ ZeroT21:
    sounds like everyone has some great imaginary friends
  • SylverReZ @ SylverReZ:
    @K3Nv2, Yeah, that was insane.
  • SylverReZ @ SylverReZ:
    Don't know what Drake was even thinking.
  • K3Nv2 @ K3Nv2:
    What every rich scumbag thinks that they can put their dick on anything and get away with it
  • ZeroT21 @ ZeroT21:
    I better hide my silicone Tifa doll
    +1
  • Veho @ Veho:
    What did Drake do, exactly? I don't follow celeb gossip.
  • SylverReZ @ SylverReZ:
    @Veho, Supposed accusations that Drake groomed a minor.
  • K3Nv2 @ K3Nv2:
    Allegedly groomed a 17 year old Instagram model or something along those lines
  • SylverReZ @ SylverReZ:
    Yep, something like that.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=F1MJtV0UPI8