2019独角兽企业重金招聘Python工程师标准>>>

This came up a few times during the last round of security reports we at Denim have been writing, so I wanted ensure everyone understood the distinction.  Granted, it is a subtle distinction, but it does exist even thought it sounds like a Dr. Seuss book at times.

  • Cleartext  is readable data transmitted or stored “in the clear” (i.e. unencrypted)
  • Plaintext is the input to an encryption algorithm
  • Ciphertext is the unreadable output of an encryption algorithm 
  • Plain text means its text that hasn’t been formatted (i.e., a plain text file)
  • And clear text… well, this is just text that is easy to comprehend (added to be thorough)
  • Something that is cleartext may be in plain text, could be used as plaintext, but definitely isn’t ciphertext.
  • Something that is plaintext should be in plain text, could be cleartext, and will become ciphertext.
  • Something that is ciphertext should be in plain text, could be used as plaintext, but definitely isn’t cleartext.

To non-security folks, this makes about as much sense as “key encryption keys” and “ticket granting tickets” (They’re real, look them up!), but the distinction comes down to when you are describing the text in question.  Let’s use the scenario of storing credentials in a database, which is where I came across during our security reports.

If you store a password in a database, you would store it as either cleartext or ciphertext, usually in plain text, meaning the password is either encrypted or unencrypted, usually without formatting. Since while just sitting in a database it isn’t an input to an encryption algorithm, it is not plaintext.

Now you can correctly say something like “The cleartext password was queried from the database and used as plaintext by the encryption method to produce ciphertext, protecting our proprietary clear text formula.”

One last important distinction to understand is that plaintext is not necessarily readable, as you could take the ciphertext from one algorithm, feed it to another (i.e., plaintext), and produce more ciphertext.

转载于:https://my.oschina.net/CasparLi/blog/880383

Cleartext vs. Plaintext vs. Ciphertext vs. Plaintext vs. Clear Text相关推荐

  1. php plaintext,php从邮件正文中提取text / plain

    这是imap_php库读取的一封邮件的内容. 我会提取内容类型的text / plain; charset = ISO-8859-1文字: {"data":"10/10/ ...

  2. golang中的对称加密

    概念 按位异或 第一步需要将数据转换为二进制 按位异或操作符: ^ 两个标志位进行按位异或操作: 相同为0, 不同为1 举例: 1 0 0 0 ----> 8 1 0 1 1 ----> ...

  3. 密码技术--国密SM4分组密码算法及Go语言应用

    SM4对称加密算法 SM4是我国采用的一种分组密码标准,有国家密码局与2012年3月21日发布,秘钥长度和分组长度为128位. go语言中应用 简单版本:其函数接口中已实现分组密码底层接口的调用 fu ...

  4. [Solved] Javax.Crypto.AEADBadTagException: Tag Mismatch

    DECEMBER 6, 2019 SAURABH GUPTA LEAVE A COMMENT 6 Votes AEADBadTagException is subclass of BadPadding ...

  5. Python123_2021年春 Python(拔尖)第二次作业

    1.成绩处理 #成绩处理,创建以姓名为键.平均成绩为值的新字典, #并将其按照平均成绩进行升序排序后输出 2021/01/31 13:35 scoresheet={'Jack':(70,60),'Bo ...

  6. Crypto-Transposition I (Crypto, Trai...) 的解法

    题目 解密下面的置换密码: oWdnreuf.lY uoc nar ae dht eemssga eaw yebttrew eh nht eelttre sra enic roertco drre . ...

  7. python之js解密_python中的RSA加密和JS中的解密

    我是密码学的全新人物.我想从服务器端生成RSA密钥对,并将其发送给所有客户端(浏览器).但在此之前,我只是通过加密python中的数据并通过pubnub发送到index.html文件并尝试在JavaS ...

  8. python RSA非对称加解密模块[M2Crypto]

    python 实现rsa对称加解密目前有三个库:rsa.pycryptodome.M2Crypto 前两个库只能实现公钥加密私钥解密,M2Crypto可以实现公私钥互相加解密 M2Crypto的安装: ...

  9. python中凯撒密码加密_凯撒密码加密Python

    有人能告诉我为什么我只对纯文本信息中的一个字符进行加密?消息是"船在午夜启航",加密密钥是4.我只能让t移到x,剩下的信息无法打印.我错过了什么?在#request the mes ...

最新文章

  1. 混合app用百分比还是rem_一次搞懂前端所有CSS长度单位,px、em、rem、rpx、%....
  2. 前端小白第一次使用redux存取数据练习
  3. 【linux操作回炉1】
  4. OpenShift Rancher 进行持续集成
  5. Leet Code OJ 328. Odd Even Linked List [Difficulty: Easy]
  6. python接口测试框架实战与自动化进阶(三)
  7. 做嵌入式的必须学Android吗
  8. vue选中点击的元素_vue中v-for循环选中点击的元素并对该元素添加样式操作
  9. 设计灵感|音乐播放器App界面如何设计?
  10. IAR的破解、K60项目的设置
  11. python传奇自动打怪脚本_GOM引擎内挂自动挂机打怪脚本实例
  12. 史上最全的互联网思维精髓总结
  13. 督查督办系统作用是什么
  14. 什么是五险一金,你懂吗?
  15. 计算机在欢迎进不到桌面,win10系统一直在欢迎界面进不去桌面的解决教程
  16. STM32 (基于HAL库) 硬件IIC读写任意AT24CXX芯片
  17. 《人性的弱点》良句收录和读后感想
  18. Ninja安装和基本使用
  19. 机器学习之随机森林(手推公式版)
  20. Ext.net Grid拖动行排序,【最上】【最下】【上移】【下移】按钮排序

热门文章

  1. 双基因突变患者_一例 Kallmann 综合征患者双基因突变分析
  2. 3款养生保健粥护理肠胃保健康
  3. Context-free grammar 与 BNF,ASN.1
  4. 用“等待-通知”机制优化循环等待
  5. python绘制指数函数图像及性质_python实现画出e指数函数的图像
  6. 吕著三国史话(观后感一)
  7. 天下大事,必做于细!
  8. 适用于Win和Mac的专业电脑数据恢复软件EasyRecovery易恢复14
  9. Mac中Caps Lock(大写锁定键)为Control键(Emacs解放小拇指.)
  10. android 微信分享 源码,记录Android微信分享功能的吐槽与思考