Factor out RDP password encryption