Password encryption

How can I encrypt my passport before sending it for response