Hi Beson,
there is a module for password store in Checkmk.
You can use this module inside your custom extension. There are also examples for using it.
BR
Anastasios