Skip to content

Pia Reverse Engineering

Yannik Marchand edited this page Jul 16, 2026 · 3 revisions

This page contains some reverse engineering notes for the Pia library.

A list of games with Pia and function names can be found here.

LDN Passphrase

A list of passphrases can be found here.

In Pia 5, the LDN passphrase is passed to the Pia library through nn::pia::local::LdnCreateSessionSetting::SetWirelessCryptoKey or nn::pia::local::LdnJoinSessionSetting::SetWirelessCryptoKey.

In Pia 6, look for the constructor of nn::pia::local::LocalCreateNetworkSetting or nn::pia::local::LocalConnectNetworkSetting instead.

When ENL is used, the passphrase is configured through enl::PiaMatchmakeCondition::setPassPhrase.

Pia Game Key

A list of game keys can be found here.

The game key is passed to the Pia library through nn::pia::session::Session::Startup. A good strategy to find the game key is to look for references to nn::pia::common::CryptoSetting.

When ENL is used, the game key is created with enl::PiaMatchmakeCondition::makeRandomCryptoKey. Note that this function is inlined in recent games, which makes it a bit more difficult to find.

Clone this wiki locally