Using different encryption on localhost and networked connections