Skip to main content

3 posts tagged with "Algorithm"

Son of the god —— An algorithm is a set of instructions for solving logical and mathematical problems, or for accomplishing some other task.

View All Tags

Time-based one-time password (TOTP)

· 11 min read
yinpo
Owner and Maintainer of here

全称 Time-Based One-Time Password 即基于时间的一次性密码,TOTP 属于 OTP 的一种实现方式,基于当前时间与密钥计算的动态密码,通常每 30s 刷新一次。

生成 TOTP 无需网络,前提是当前时间是准确的。服务方与本地生成的 TOTP 相同,则说明校验通过。

CRC 原理

· 13 min read
yinpo
Owner and Maintainer of here

CRC 是一种用于检测数据传输错误或数据损坏的算法。

CRC-n-XX 其中 n 表示 CRC 的位宽,XX 表示 CRC 的标准名。例如:

  1. CRC-64-ECMA-182: 表示 ECMA-182 标准的 64 位 CRC。
  2. CRC-64-ISO: 表示 ISO 3309 (HDLC) 标准的 64 位 CRC。