diff --git a/.gitignore b/.gitignore index 44bd8e9..510fa75 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ target/ # 临时测试产物 probe.cjo +# 测试宏展开产物(cjpm test 生成) +*.cj.macrocall diff --git a/README.md b/README.md index 415175b..c90db34 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 仓颉(Cangjie)一次性密码(OTP)库,实现 **HOTP**(RFC 4226)与 **TOTP**(RFC 6238),提供 Base32 密钥编解码(RFC 4648)与 `otpauth://` URI 生成,可直接与 Google Authenticator / Microsoft Authenticator 等常见 OTP App 互通。 -组织:`simcu` | 包名:`otp` | 版本:`1.0.0` +组织:`simcu` | 包名:`otp` | 版本:`1.0.1` ## 特性 @@ -20,7 +20,7 @@ ```toml [dependencies] "simcu::otp" = { path = "../../cangjie/otp-cj" } -# 或发布到中央仓后:"simcu::otp" = "1.0.0" +# 或发布到中央仓后:"simcu::otp" = "1.0.1" ``` 代码中引用: diff --git a/cjpm.toml b/cjpm.toml index 839b9d2..598a10d 100644 --- a/cjpm.toml +++ b/cjpm.toml @@ -3,7 +3,7 @@ name = "otp" organization = "simcu" description = "SimApi OTP(一次性密码)库:HOTP/TOTP 实现(RFC 4226/6238),Base32 密钥与 otpauth:// URI 生成" - version = "1.0.0" + version = "1.0.1" target-dir = "" output-type = "static" diff --git a/src/Base32.cj b/src/base32.cj similarity index 100% rename from src/Base32.cj rename to src/base32.cj diff --git a/src/HmacSha1.cj b/src/hmac_sha1.cj similarity index 100% rename from src/HmacSha1.cj rename to src/hmac_sha1.cj diff --git a/src/Hotp.cj b/src/hotp.cj similarity index 100% rename from src/Hotp.cj rename to src/hotp.cj diff --git a/src/OtpUri.cj b/src/otp_uri.cj similarity index 100% rename from src/OtpUri.cj rename to src/otp_uri.cj diff --git a/src/tests/Otp_test.cj b/src/tests/otp_test.cj similarity index 100% rename from src/tests/Otp_test.cj rename to src/tests/otp_test.cj diff --git a/src/Totp.cj b/src/totp.cj similarity index 100% rename from src/Totp.cj rename to src/totp.cj