Added encrypted key reader/writer interfaces. Relates to #17.