Added encryption methods to smisc.