Libkpass is a from-scratch C implementation of reading and writing KeePass 1.x format password databases.