猪圈密码

密码类型

猪圈密码(英语:pigpen cipher),亦称共济会密码masonic cipher)或共济会员密码Freemason's cipher),是一种以格子为基础的简单替换式密码。即使使用符号,也不会影响密码分析,亦可用在其它替代式的方法。右边的例子,是把字母填进格子的模样。

上图,是猪圈密码用符号与26个字母作的密码配对。

早在1700年代,共济会常常使用这种密码保护一些私密纪录或用来通讯,所以又称共济会密码[1]

范例 编辑

若使用范例的关键字,则明文“X marks the spot”的加密结果将呈现如下:

参考文献 编辑

  • David Kahn, The Codebreakers. The Story of Secret Writing. Macmillan, 1967.
  • David E. Newton, "Freemason's Cipher" in Encyclopedia of Cryptology, 1998, ISBN 0-87436-772-7.
  • Martin Gardner, Codes, ciphers and secret writing, 1972, ISBN 0-486-24763-9.
  • Sarah Wray, The Trap, book, code breaking; 2008

注脚 编辑

  1. ^ Kahn, 1967, p.~772; Newton, 1998, p. 113

外部链接 编辑