Enviar mensagens e informações pela web sempre envolve algum risco. Hackers costumam tentar interceptar e roubar dados durante a transmissão, especialmente mensagens com dados pessoais enviadas de sites. Se você usa ColdFusion, pode empregar a função nativa "encrypt" para embaralhar a mensagem e então enviá-la ao destino pretendido.
Instruções
1. Crie uma variável string para conter a mensagem:
<html>
<body>
<cfset message = "This is the message to encrypt">
</body>
</html>
2. Criptografe a string com a função "encrypt" do ColdFusion:
<html>
<body>
<cfset message = "This is the message to encrypt">
<cfset encrypted = encrypt(message, '54321')>
</body>
</html>
3. Envie a mensagem criptografada com a tag "cfmail":
<html>
<body>
<cfset message = "This is the message to encrypt">
<cfset encrypted = encrypt(message, '54321')>
<cfmail
to = "bob@mail.com"
from = "jerry@mail.com"
subject = "Encrypted Message"
server = "smtp.mail.com">
#encrypted#
</cfmail>
</body>
</html>