Context
The decryption logic is game-specific and does not belong in photon-parser.
This task exposes the raw encrypted bytes to the caller so that the consuming layer
(e.g. albion-lens) can provide its own decryption implementation.
Current behavior
// Packet with non-0xF3 signature → silently dropped
if sig != 0xF3 {
return nil
}
Target behavior
// Encrypted packet detected → fire OnEncryptedPacket with raw bytes
// Caller owns the decryption — photon-parser stays protocol-agnostic
API proposal
// New MessageType constant
const EncryptedPacket MessageType = ...
// Usage via existing OnEvent mechanism
parser.OnEncryptedPacket(func(raw []byte) {
// caller decrypts and re-feeds if needed
})
Tasks
Détection
Exposition
Tests
Context
The decryption logic is game-specific and does not belong in
photon-parser.This task exposes the raw encrypted bytes to the caller so that the consuming layer
(e.g.
albion-lens) can provide its own decryption implementation.Current behavior
Target behavior
API proposal
Tasks
Détection
0xF3dans le parsing loopExposition
EncryptedPacketdansMessageTypeOnEncryptedPacketenregistrésTests
OnEventdé-enregistré → skip silencieux