发送任何类型的隐藏数据的电子邮件 [英] Sending Email with any type hidden data

查看:179
本文介绍了发送任何类型的隐藏数据的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想用该邮件发送包含任何类型的隐藏数据的电子邮件.

这可能吗?

问候,
Manikandan Muthuraj

Hi,

I want to send email with any type of hidden data with that mail.

Is this possible?

Regards,
Manikandan Muthuraj

推荐答案

隐藏数据"是什么意思?您是指隐藏文件附件,还是电子邮件文本中的隐藏数据?无论哪种方式,我都必须问为什么要这样做,因为说实话,您的请求没有通过气味测试.
What do you mean by "hidden data"? Do you mean a hiden file attachment, or hidden data in the email text? Either way, I have to ask why you want to do this because to be honest, your request doesn''t pass the smell test.


Manikandan,

我可以想到许多选择.首先,如果您要处理安全问题,我会尝试加密.

相反,您可以通过在图像中附加隐藏的文本来尝试隐藏在普通的视线中.如果您想了解更多有关此信息的信息,请在Google上搜索隐藏图片中的文字".

但是,如果您将诸如密码链接之类的简单内容隐藏在电子邮件中,则可以尝试将其隐藏在该链接中.这不是真正的加密,而是混淆.

这样的事情将需要20个字符串,并将您的字符串放在第34位.然后,当我调用UnObviscateWebUserIdFromQueryString时,我走了,然后抓住了我需要的东西.如果所有字符串的长度都是恒定的,并且每次都从相同的垃圾字符串中以相同的方式捕获它,那么它将起作用.

这不适用于银行应用程序,但是如果您将其用于简单的操作(例如密码重置)或传递可能会使用户感到困惑的信息,因此不应为他们所困扰,那么您就可以使用它会起作用.

祝你好运,

瑞安·麦克贝斯

Manikandan,

I can think of a number of options. First off, if you are dealing with something secure, I would try encryption.

Conversely, you could try hiding in plain sight by attaching the hidden text in an image. Do a google search on "hide text in an image" if you want more information on this.

But if you are hiding something simple like a password link inside an email, you could try hiding it in plain sight in the link. This isn''t really encryption, it''s obfuscation.

Something like this would take a 20 character string and drop your string in the 34th place. Then, when I call UnObviscateWebUserIdFromQueryString, I go and I grab what I need. It works if all of your strings are of constant length and you are grabbing it the same way every time from the same junk string.

This isn''t going to work for a banking application, but if you are using it for something simple like password reset or or passing information that might be confusing to a user and thus they shouldn''t be bothered with seeing it, it will work.

Good luck,

Ryan McBeth

        public static string GenerateObviscation(int iLength)
        {

            RandomStringGenerator R = new RandomStringGenerator();
            return R.NextString(iLength, true, true, true, false);


        }
     
public static string ObviscateSingleQueryString(string ToObviscate)
        {
            string sFakeQueryName = GenerateObviscation(40);
            sFakeQueryName = sFakeQueryName.Insert(20, "=");
            sFakeQueryName = sFakeQueryName.Insert(24 + 1 + 8, ToObviscate);
            return sFakeQueryName;
        }

        public static string UnObviscateWebUserIdFromQueryString(string ToObviscate)
        {
            string sToReturn = ToObviscate.Substring(sQueryString.Length - 18, 10);

            return sToReturn;
        }


这篇关于发送任何类型的隐藏数据的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆