gmalz: store and retrieve credentials as json