问题标题:
英语翻译如果是基于以上两点,那么我们使用最简单的恺撒法即可,为什么Base64看起来要比恺撒法复杂呢?这是因为在Email的传送过程中,由于历史原因,Email只被允许传送ASCII字符,即一个8位字节的
问题描述:
英语翻译
如果是基于以上两点,那么我们使用最简单的恺撒法即可,为什么Base64看起来要比恺撒法复杂呢?这是因为在Email的传送过程中,由于历史原因,Email只被允许传送ASCII字符,即一个8位字节的低7位.因此,如果您发送了一封带有非ASCII字符(即字节的最高位是1)的Email通过有“历史问题”的网关时就可能会出现问题.网关可能会把最高位置为0很明显,问题就这样产生了!因此,为了能够正常的传送Email,这个问题就必须考虑!所以,单单靠改变字母的位置的恺撒之类的方案也就不行了.
高曦莹回答:
Ifitisbasedontheabovetwopoints,thenweusethesimplestmethodtoCaesar,WhyBase64methodlookscomplicatedthanit?ThisisbecausetheEmailtransmissionprocess,duetohistoricalreasons,EmailisonlyallowedtosendASCIIcharacters,thatisan8-bitbyteis7bits.So,ifyousendanemailwithnon-ASCIIcharacters(iethehighestbitis1byte)oftheEmailthrougha"historicalproblem"mayoccurwhenthegatewayissue.Gatewaywillbethehighestposition0isclear,thatcausetheproblem!Therefore,inordertosendanormalEmail,thisissuemustbeconsidered!So,justbychangingthelocationofthelettersofprogramslikeCaesarwillnotsucceed.
查看更多