Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究仿射密码。维基百科中的条目说它要加密,你计算:
并解密你计算:
我在想你会 [a^-1(y) - b] mod m 来解密。
为什么不是这样?(什么规则,如果有的话,我不清楚吗?)
它是 a^-1(y - b)。这只是让你失望的符号。请注意,他们以 x 作为变量来定义 D(x)。它与 D(y) = a^-1(y - b) 相同