# IBM i Password Hashes Cracked: QSYRUPWD Cipher Reverse-Engineered

Original title: The Cipher Behind QSYRUPWD: Reconstructing IBM i Password Hashes

> Hacker News story 49090268 · language: en · submitted 2026-07-28
> Web version: https://zeli.app/story/49090268
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 16 · by [kencausey](<https://news.ycombinator.com/user?id=kencausey>) · 💬 8
[original](<https://blog.silentsignal.eu/2026/07/28/the-cipher-behind-qsyrupwd-reconstructing-ibm-i-password-hashes/>) · [HN discussion](<https://news.ycombinator.com/item?id=49090268>)

## Summary

During a penetration test, the author discovered that IBM i's QSYRUPWD API returns encrypted password data that doesn't match existing John the Ripper formats for QPWDLVL 2-4. Using system tracing and disassembly, they traced the API's internal calls to a cipher routine that delegates to a supervisor call (SCV) with function number 346. By analyzing the LIC module #cfmir, they identified the underlying AES decryption process, enabling reconstruction of IBM i password hashes for strength testing.

## Key quote

> The qsy_cipher function contains the following code: ... SCV 10 ... In this case, 346 (ADDI 10,0,346) is the decimal function number, but based on the number alone I did not know which internal function it represented.

## HN discussion (8 comments)

### [kencausey](<https://news.ycombinator.com/item?id=49090269>)

> Link stolen from calvin on lobste.rs. <https://lobste.rs/s/2dc0gb/cipher_behind_qsyrupwd_reconstruc...>

---

## Cite

- Page: https://zeli.app/story/49090268
- Date: 2026-07-28
- Source: blog.silentsignal.eu (https://blog.silentsignal.eu/2026/07/28/the-cipher-behind-qsyrupwd-reconstructing-ibm-i-password-hashes/)
- Hacker News: https://news.ycombinator.com/item?id=49090268

## Other languages

- zh: https://zeli.app/zh/story/49090268 · markdown: https://zeli.app/zh/story/49090268.md
- ja: https://zeli.app/ja/story/49090268 · markdown: https://zeli.app/ja/story/49090268.md
- ko: https://zeli.app/ko/story/49090268 · markdown: https://zeli.app/ko/story/49090268.md
- de: https://zeli.app/de/story/49090268 · markdown: https://zeli.app/de/story/49090268.md
- es: https://zeli.app/es/story/49090268 · markdown: https://zeli.app/es/story/49090268.md
