Added functions to serialise/parse Maid, Anpmid and Pmid key types to symmetrically encrypted strings.