备份导出前置空校验,导入先选文件再输密码,版本/空备份校验、组id映射修复与 secret 查重统计

This commit is contained in:
2026-10-14 17:16:18 +08:00
parent 74aa93abcd
commit d26264c867
7 changed files with 175 additions and 53 deletions
@@ -5,3 +5,8 @@ data class SecretString(val value: String) {
return "***"
}
}
/** Normalizes a base32 secret for comparison: uppercase, strip non-alphabet chars. */
fun String.normalizeSecret(): String {
return this.uppercase().replace(Regex("[^A-Z2-7]"), "")
}