Refactor encryption methods

Also add tempLdapConfig to ensure proper password display

#20