Skip to content

Releases

GoldenPassport 0.3.0

Choose a tag to compare

@thatscode thatscode released this 22 Nov 04:26

Already on 0.2.3? Choose Check for Updates… and click Download and Install. Coming from 0.2.2 or earlier, download GoldenPassport-0.3.0.zip, unzip it and run install.sh as described in INSTALL.md (中文:安装说明.md). Signed with a Developer ID and notarized by Apple. Requires macOS 13 or later; runs natively on Apple Silicon and on Intel.

What's new

  • Import from other authenticators. Import from Another Authenticator… reads the QR codes of Google Authenticator's Transfer accounts → Export accounts, and otpauth:// links, from images you drop, choose or paste, or from pasted text. Exports split over several QR codes can be read one by one; the window shows which codes are still missing. Every account is listed before importing: accounts you already have stay unchecked, clashing names get a number, and counter-based (HOTP) accounts are shown but can't be imported. Google Authenticator for Android blocks screenshots, so photograph the code with another device and send the photo to this Mac. Microsoft Authenticator and Authy can't export accounts. See Moving from another authenticator.
  • Encrypted backups. Export → Encrypted Backup (.gpbackup) (⌘E) asks for a password twice and saves your accounts, names and order included, encrypted with AES-256-GCM under a key derived from the password (PBKDF2-HMAC-SHA256, 600,000 iterations). Import… opens these files after asking for the password; a wrong password or a changed file imports nothing. GoldenPassport doesn't keep the password, so a forgotten one can't be recovered. The unencrypted .secrets and .txt exports are still there.
  • Copied codes don't linger on the clipboard. Codes copied from the menu or typed by a hotkey are marked as confidential, so clipboard managers that honor the nspasteboard.org markers leave them out of their history. They are removed from the clipboard once they expire (30 to 60 seconds after copying for most accounts) unless you copied something else since, and right away when you quit.

Fixes

  • Building from source works with Xcode 16 again.
  • install.sh shows the notes about hotkeys and Accessibility only when they apply. Updates from 0.2.1 or later keep the Accessibility permission.

The data format doesn't change, so an earlier 0.2.x still reads your accounts if you go back.

Caution

install.sh backs up your current app and data to ~/GoldenPassport-backups/, unencrypted. Delete it with cleanup.sh once you no longer need to roll back, and never share it.


简体中文

已经是 0.2.3? 点「检查更新…」,再点「下载并安装」。从 0.2.2 或更早的版本升级:下载 GoldenPassport-0.3.0.zip,解压后按 安装说明.md 运行 install.sh。使用 Developer ID 签名并经过 Apple 公证,需要 macOS 13 或更高版本,原生支持 Apple 芯片,也支持 Intel。

新功能

  • 从其他验证器导入。 「从其他验证器导入…」可以从拖入、选择或粘贴的图片,以及粘贴的文本中,读取 Google Authenticator「转移账号 → 导出账号」生成的二维码和 otpauth:// 链接。分成几张的导出可以一张张读,窗口会显示还差哪几张。导入前会列出所有账号:已经有的账号默认不勾选,名称重复的自动加编号,按次数计数(HOTP)的账号会显示但不能导入。安卓版 Google Authenticator 不能截图,请用另一台设备拍下二维码,再传到这台 Mac。Microsoft Authenticator 和 Authy 无法导出账号。详见从其他验证器迁移。
  • 加密备份。 「导出 → 加密备份(.gpbackup)」(⌘E)会让你输入两次密码,把账号连同名称和顺序用 AES-256-GCM 加密保存,密钥由密码通过 PBKDF2-HMAC-SHA256 迭代 600,000 次派生。「导入…」能打开这种文件,先要求输入密码;密码不对或文件被改过,不会导入任何内容。GoldenPassport 不保存密码,忘记了就无法恢复。不加密的 .secrets 和 .txt 导出仍然保留。
  • 复制的验证码不会一直留在剪贴板里。 从菜单复制或用快捷键填入的验证码带有「机密内容」标记,遵循 nspasteboard.org 标记的剪贴板工具不会把它们记进历史。验证码过期后(大多数账号是复制后 30 到 60 秒)会从剪贴板清除,期间复制过别的内容则不动;退出 App 时会立刻清除。

问题修复

  • 又可以用 Xcode 16 从源码构建了。
  • install.sh 只在适用时才显示关于快捷键和辅助功能的提示。从 0.2.1 或更新的版本升级会保留辅助功能授权。

数据格式没有变化,退回更早的 0.2.x 版本后仍然能读取你的账号。

[!CAUTION]
install.sh 会把当前的 App 和数据备份到 ~/GoldenPassport-backups/,备份没有加密。确认不再需要回退后,请用 cleanup.sh 删除,也不要把它发给任何人。

GoldenPassport 0.2.3

Choose a tag to compare

@thatscode thatscode released this 21 Nov 14:30

Download GoldenPassport-0.2.3.zip, unzip it and run install.sh as described in INSTALL.md (中文:安装说明.md). Signed with a Developer ID and notarized by Apple. Requires macOS 13 or later; runs natively on Apple Silicon and on Intel.

What's new

  • Install updates from the app. When Check for Updates… finds a newer release, click Download and Install. GoldenPassport downloads it, checks that it is signed with the same Developer ID, notarized by Apple and able to read your accounts, then replaces itself and opens the new version. The previous version goes to the Trash. If any check fails, nothing is changed. Your accounts, settings and Launch at Login carry over, and so does the Accessibility permission; if macOS ever drops it, the message shown after the update says so and has a button that opens the setting.

    Nothing is downloaded until you click the button, and it only appears when the update can finish safely. Releases that change the data format or need an intermediate upgrade, a copy opened straight from the Downloads folder, or a user account that can't modify the app get the release page and install.sh instead.

This update itself still goes through install.sh: 0.2.2 and earlier don't have the button. Later updates can then be installed from the app.

Fresh installs behave as in 0.2.2. Upgrading from 0.2.0 still asks once for keychain access and needs Accessibility and Launch at Login turned on again; see the 0.2.1 release notes.

Caution

The installer backs up your current app and data to ~/GoldenPassport-backups/, unencrypted. Delete it with cleanup.sh once you no longer need to roll back, and never share it.


简体中文

下载 GoldenPassport-0.2.3.zip,解压后按 安装说明.md 运行 install.sh。使用 Developer ID 签名并经过 Apple 公证,需要 macOS 13 或更高版本,原生支持 Apple 芯片,也支持 Intel。

新功能

  • 在 App 里安装更新。 「检查更新…」发现新版本后,点「下载并安装」。GoldenPassport 会下载新版本,确认它由同一个 Developer ID 签名、经过 Apple 公证并且能读取你的账号,然后替换自己并打开新版本;旧版本会移到废纸篓。任何一项检查没通过,都不做任何改动。账号、设置和「开机自动启动」都会保留,辅助功能授权也会保留;万一系统没有保留授权,更新完成的提示里会说明,并提供打开设置的按钮。

    点这个按钮之前不会下载任何东西,而且只有能安全完成时才会出现。会改变数据格式或需要先升级到中间版本的版本、直接从「下载」文件夹打开的那一份,以及当前账号没有权限修改 App 时,会引导你到发布页面,改用 install.sh。

这次升级本身仍然要用 install.sh:0.2.2 及更早的版本还没有这个按钮。之后的更新就可以在 App 里完成。

全新安装的行为和 0.2.2 相同。从 0.2.0 升级时,仍然需要确认一次钥匙串授权,并重新打开辅助功能和开机自动启动,见 0.2.1 的 Release 说明。

[!CAUTION]
安装脚本会把当前的 App 和数据备份到 ~/GoldenPassport-backups/,备份没有加密。确认不再需要回退后,请用 cleanup.sh 删除,也不要把它发给任何人。

GoldenPassport 0.2.2

Choose a tag to compare

@thatscode thatscode released this 20 Nov 03:05

Download GoldenPassport-0.2.2.zip, unzip it and run install.sh as described in INSTALL.md (中文:安装说明.md). Signed with a Developer ID and notarized by Apple. Requires macOS 13 or later; runs natively on Apple Silicon and on Intel.

What's fixed

  • The menu bar icon no longer vanishes after an upgrade. macOS keeps a menu bar icon's position under the app's bundle ID, and 0.2.1's new bundle ID left the old position behind. The icon then counted as new and went to the far left of the menu bar icons; on a crowded menu bar next to the notch there was no room there, so macOS didn't show it at all, and menu bar managers such as Bartender couldn't find it. 0.2.2 carries over the position and visibility that 0.1.x or 0.2.0 saved, also on Macs that already run 0.2.1.

If the icon is missing on your Mac, GoldenPassport is still running but you can't reach its menu, so Check for Updates… isn't available: download this release and run install.sh as usual. The icon comes back where it was before.

Fresh installs behave as in 0.2.1. Upgrading from 0.2.0 still asks once for keychain access and needs Accessibility and Launch at Login turned on again; see the 0.2.1 release notes.

Caution

The installer backs up your current app and data to ~/GoldenPassport-backups/, unencrypted. Delete it with cleanup.sh once you no longer need to roll back, and never share it.


简体中文

下载 GoldenPassport-0.2.2.zip,解压后按 安装说明.md 运行 install.sh。使用 Developer ID 签名并经过 Apple 公证,需要 macOS 13 或更高版本,原生支持 Apple 芯片,也支持 Intel。

修复

  • 升级后菜单栏图标不会再消失。 macOS 按 Bundle ID 保存菜单栏图标的位置,0.2.1 换了 Bundle ID,原来的位置没有跟过来。图标于是被当成新图标,排到菜单栏图标区的最左边;菜单栏图标多、又有刘海时,那里放不下,macOS 就不显示它,Bartender 等菜单栏管理工具也找不到。0.2.2 会沿用 0.1.x 或 0.2.0 保存的位置和显示状态,已经装了 0.2.1 的 Mac 也会补上。

如果你的菜单栏图标已经不见了:GoldenPassport 其实仍在运行,只是打不开菜单,也就没法点「检查更新…」。请直接下载这个版本,照常运行 install.sh,图标会回到原来的位置。

全新安装的行为和 0.2.1 相同。从 0.2.0 升级时,仍然需要确认一次钥匙串授权,并重新打开辅助功能和开机自动启动,见 0.2.1 的 Release 说明。

[!CAUTION]
安装脚本会把当前的 App 和数据备份到 ~/GoldenPassport-backups/,备份没有加密。确认不再需要回退后,请用 cleanup.sh 删除,也不要把它发给任何人。

GoldenPassport 0.2.1

Choose a tag to compare

@thatscode thatscode released this 19 Nov 18:22

Download GoldenPassport-0.2.1.zip, unzip it and run install.sh as described in INSTALL.md (中文:安装说明.md). Signed with a Developer ID and notarized by Apple. Requires macOS 13 or later; runs natively on Apple Silicon and on Intel.

What's improved

  • The menu bar icon is whole again. In 0.2.0 it showed only a tiny figure: macOS didn't draw the mask that shaped the key around it. The full key is back, about as large as the other menu bar icons.
  • Only one copy runs at a time. Opening a second copy, for example the one still in the download folder while the installed one runs, now says that GoldenPassport is already running and quits. Two copies used to show two menu bar icons, compete for the hotkeys and the HTTP port, and could save over each other's changes to your accounts.
  • The installer quits every running copy. install.sh and rollback.sh also quit GoldenPassport when it runs from another folder, so that only the installed copy runs afterwards.
  • New bundle ID: com.thatscode.GoldenPassport (0.1.x and 0.2.0 used site.stanzhai.GoldenPassport), so menu bar managers such as Bartender show this fork's name. Your accounts, settings and data folder stay where they are, and the language you picked in the menu is carried over.

Upgrading from 0.2.0

With the new bundle ID, macOS treats 0.2.1 as a new app:

  1. During the install, macOS asks once whether GoldenPassport may use your keychain. Choose Always Allow and enter your login password. If you choose Deny, the installer puts 0.2.0 back; nothing is lost.
  2. Grant Accessibility again if you want hotkeys to type the code: System Settings → Privacy & Security → Accessibility. Remove the old GoldenPassport entry with "−" first.
  3. If you used Launch at Login, turn it on again in the menu. If System Settings → General → Login Items still lists an old GoldenPassport entry, remove it.

Upgrading from 0.1.x works as before. Everything new since 0.1.7 is in the 0.2.0 release notes and the changelog.

Caution

The installer backs up your current app and data to ~/GoldenPassport-backups/, unencrypted. Delete it with cleanup.sh once you no longer need to roll back, and never share it.


简体中文

下载 GoldenPassport-0.2.1.zip,解压后按 安装说明.md 运行 install.sh。使用 Developer ID 签名并经过 Apple 公证,需要 macOS 13 或更高版本,原生支持 Apple 芯片,也支持 Intel。

改进

  • 菜单栏图标恢复完整。 0.2.0 的菜单栏图标只显示一个很小的人像:外面那把钥匙是用蒙版画出来的,macOS 不绘制这种蒙版。现在钥匙完整显示,大小和其他菜单栏图标相当。
  • 同一时间只运行一份。 再打开一份 GoldenPassport 时(例如已安装的那份正在运行,又打开了下载文件夹里的那份),会提示 GoldenPassport 已经在运行,然后退出。以前两份会同时运行:菜单栏上出现两个图标,抢占快捷键和 HTTP 端口,还可能互相覆盖对账号的修改。
  • 安装脚本会退出所有正在运行的副本。 install.sh 和 rollback.sh 也会退出从其他文件夹运行的 GoldenPassport,确保之后只运行安装好的那一份。
  • 新的 Bundle ID:com.thatscode.GoldenPassport(0.1.x 和 0.2.0 用的是 site.stanzhai.GoldenPassport),Bartender 等菜单栏管理工具会显示本 fork 的标识。账号、设置和数据目录都不变,在菜单里选过的语言也会沿用。

从 0.2.0 升级

换了 Bundle ID 之后,macOS 会把 0.2.1 当成一个新的 App:

  1. 安装过程中,系统会询问一次是否允许 GoldenPassport 使用钥匙串。请选「始终允许」并输入登录密码。如果点了「拒绝」,安装脚本会自动恢复到 0.2.0,什么都不会丢。
  2. 如果希望快捷键自动填入验证码,需要重新授权辅助功能:系统设置 → 隐私与安全性 → 辅助功能。先用「−」删掉旧的 GoldenPassport。
  3. 如果开启过开机自动启动,请在菜单里重新打开。如果 系统设置 → 通用 → 登录项 里还留着旧的 GoldenPassport,把它删掉。

从 0.1.x 升级的方式不变。0.1.7 以来的全部变化见 0.2.0 的 Release 说明和更新日志。

[!CAUTION]
安装脚本会把当前的 App 和数据备份到 ~/GoldenPassport-backups/,备份没有加密。确认不再需要回退后,请用 cleanup.sh 删除,也不要把它发给任何人。

GoldenPassport 0.2.0

Choose a tag to compare

@thatscode thatscode released this 19 Nov 16:31

Download GoldenPassport-0.2.0.zip, unzip it and follow INSTALL.md (中文:安装说明.md). Signed with a Developer ID and notarized by Apple. Requires macOS 13 or later; runs natively on Apple Silicon and on Intel.

Caution

The installer backs up your current app and data to ~/GoldenPassport-backups/, unencrypted. Delete it with cleanup.sh once you no longer need to roll back, and never share it.

A ground-up rewrite for current macOS and a drop-in upgrade for 0.1.x: same app, same bundle id, and your existing accounts are migrated automatically. The changes below are relative to 0.1.7, the last release of the original project. To upgrade, run install.sh from the release package; see Installation.

New features

  • New app icon in the macOS 26 style (a gold key with a person in its bow, after the original icon), with a matching menu bar icon that stays sharp at every size. macOS 13–15 show a flat version of it.
  • Codes follow the TOTP settings in the otpauth URL: algorithm (SHA1, SHA256, SHA512), digits (6–8) and period. 0.1.x ignored them and always generated 6-digit SHA1 codes every 30 seconds, so accounts with other settings got wrong codes.
  • English interface: 0.1.x menus were in Chinese only. The interface follows the system language, or pick one in the menu under Language / 语言.
  • Manage window (⌘M): drag or use the arrow buttons to reorder, double-click to rename, right-click to edit the URL or delete (#12, #17, #29).
  • Configurable global hotkeys: ⌃⌥⌘0–9 (new default), ⇧⌘0–9 (as in 0.1.x), ⌃⌥0–9, or off. Registered system-wide, so the keystroke no longer also reaches the frontmost app (#4, #11, #18).
  • Export as an otpauth URL list (.txt) that other authenticator apps can import; import accepts both this format and .secrets backups (#10, #30).
  • Launch at login toggle.
  • Update check: Check for Updates… asks GitHub whether a newer release is out, and Check for Updates Daily does so once a day (off by default). If a release changes the data format or needs an intermediate upgrade first, the prompt says so before you install anything.
  • The account name is suggested from the otpauth URL label, and pasted URLs are trimmed (#26).
  • Installer with a safety net: install.sh backs up the app and data, checks every migrated account and restores the previous app and data automatically if a check fails. rollback.sh puts back the previous app, and cleanup.sh deletes the unencrypted leftovers once you no longer need to roll back. Their messages follow the app's language.
  • Rolling back is a round trip: accounts you add or change in 0.1.x after rolling back are listed when you upgrade again, and you choose which ones to import.

Fixes

  • Crashes when adding an account or reading a QR code image (#1, #16, #21, #22, #25, #28).
  • ⌘V / ⌘C / ⌘A now work in text fields (#9).
  • The HTTP index page declares UTF-8, so Chinese account names display correctly (#26).
  • Duplicate names are rejected instead of silently overwriting an existing account.
  • Deleting an account asks for confirmation.
  • The menu bar icon is visible to menu bar managers such as Bartender.

Security & privacy

  • Releases are signed with a Developer ID and notarized by Apple: they open without Gatekeeper workarounds, and updates from the same developer keep their access to your accounts in the Keychain without asking again.
  • Signed releases keep your accounts in the login Keychain instead of a plaintext file. Other apps can't read them without macOS asking you first, and copies of the data folder (installer backups, sync tools, unencrypted Time Machine backups) no longer carry your secrets. Builds you make yourself are ad-hoc signed, and macOS would ask for Keychain access after every update of such a build, so they keep using accounts.json unless built with KEYCHAIN=1.
  • The HTTP API is off on new installs. It has no password, so while it runs anything running as you on this Mac can read every code. Upgrades from 0.1.x keep their previous setting.
  • GoldenPassport goes online only to check for updates, and only when you ask it to: choose Check for Updates…, or turn on Check for Updates Daily (off by default). The check asks GitHub's API for the latest release and, if it is newer, downloads that release's small compat.json. Requests identify themselves only as GoldenPassport/<version> and carry no cookies or account information. Nothing is downloaded or installed automatically.
  • The HTTP API listens on 127.0.0.1 only and rejects requests with a foreign Host header (#6), so web pages cannot read your codes through DNS rebinding.
  • Data files are owner-only: the data directory is 0700 and files are 0600. 0.1.x left them readable by every local user; 0.2.0 tightens the existing files without changing them.
  • Both export formats warn that the file contains every secret unencrypted.
  • See Data & security for every place a copy of your secrets can exist.

Behaviour changes to be aware of

0.1.x 0.2.0
Minimum macOS 10.10 13
Default hotkeys ⇧⌘0–9 (3/4/5 clash with screenshots) ⌃⌥⌘0–9; ⇧⌘ is still available in the menu
Typing the code into the frontmost app Accessibility permission Still needs it, and it must be granted again after upgrading
HTTP API at launch On unless you turned it off Off on new installs; upgrades keep the 0.1.x setting
Where accounts are stored gp.secrets The login Keychain in signed releases, accounts.json in builds you make yourself. Migrated automatically on first launch; gp.secrets is kept but no longer updated
Account order Changed randomly between launches Alphabetical after migration, then whatever order you set

简体中文

下载 GoldenPassport-0.2.0.zip,解压后按 安装说明.md 操作。使用 Developer ID 签名并经过 Apple 公证,需要 macOS 13 或更高版本,原生支持 Apple 芯片,也支持 Intel。

[!CAUTION]
安装脚本会把当前的 App 和数据备份到 ~/GoldenPassport-backups/,备份没有加密。确认不再需要回退后,请用 cleanup.sh 删除,也不要把它发给任何人。

针对新版 macOS 从头重写,0.1.x 的用户可以直接覆盖升级:还是同一个 App、同一个 Bundle ID,已有的账号会自动迁移。以下对比的是原项目的最后一个版本 0.1.7。升级时请运行发布包里的 install.sh,见安装。

新功能

  • 新图标:按 macOS 26 的风格重画(金色钥匙,钥匙圈里是一个人像,延续原来的图标),菜单栏图标也随之更新,在各种尺寸下都清晰。macOS 13–15 显示它的扁平版本。
  • 验证码按 otpauth URL 里的 TOTP 参数生成:algorithm(SHA1、SHA256、SHA512)、digits(6–8 位)和 period。0.1.x 会忽略这些参数,一律生成 30 秒一换的 6 位 SHA1 验证码,参数不同的账号拿到的验证码是错的。
  • 英文界面:0.1.x 的菜单只有中文。新版默认跟随系统语言,也可以在菜单「语言 / Language」里固定为简体中文或英文。
  • 管理窗口(⌘M):拖动或用上下箭头调整顺序,双击重命名,右键修改 URL 或删除(#12、#17、#29)。
  • 全局快捷键可配置:⌃⌥⌘0–9(新的默认值)、⇧⌘0–9(0.1.x 的方式)、⌃⌥0–9,或者关闭。改为系统级注册,按键不会再同时传给当前 App(#4、#11、#18)。
  • 导出 otpauth URL 列表(.txt),可以导入其他验证器 App。导入同时支持这种格式和 .secrets 备份文件(#10、#30)。
  • 开机自动启动开关。
  • 检查更新:「检查更新…」向 GitHub 查询有没有新版本,「每天自动检查更新」每天查询一次(默认关闭)。如果新版本会改变数据格式,或者需要先升级到某个中间版本,提示里会在安装前写明。
  • 添加账号时,会根据 otpauth URL 里的标签自动填写标识;粘贴的 URL 会自动去掉首尾空白(#26)。
  • 带保护的安装脚本:install.sh 会先备份 App 和数据,迁移后逐条核对账号,核对不通过就自动恢复到安装前的 App 和数据。rollback.sh 恢复安装前的 App,cleanup.sh 在不再需要回退时删除未加密的残留文件。脚本的提示语言和 App 的界面语言一致。
  • 回退之后还能再升级回来:回退期间在 0.1.x 里新增或修改的账号,再次升级时会列出来,由你选择要导入哪些。

问题修复

  • 添加账号或识别二维码图片时闪退(#1、#16、#21、#22、#25、#28)。
  • 输入框里可以正常使用 ⌘V / ⌘C / ⌘A 了(#9)。
  • HTTP 页面声明了 UTF-8 编码,中文账号名不再乱码(#26)。
  • 重名时会提示,不再静默覆盖已有账号。
  • 删除账号前会先确认。
  • Bartender 等菜单栏管理工具可以识别 GoldenPassport 的图标了。

安全与隐私

  • 正式版使用 Developer ID 签名并经过 Apple 公证:下载后可以直接打开,不用绕过 Gatekeeper;同一个开发者签名的后续更新可以直接读取钥匙串里的账号,不会再次询问。
  • 签名的正式版把账号存在登录钥匙串里,不再写明文文件。别的程序要读取时,系统会先弹框问你;数据目录被拷走、被同步工具带走,或出现在安装备份、未加密的时间机器备份里,都不会再带出密钥。自己构建的版本是 ad-hoc 签名,每次更新后系统都会重新询问钥匙串授权,所以默认仍用 accounts.json,除非构建时加上 KEYCHAIN=1。
  • 全新安装时 HTTP 接口默认关闭。它没有访问密码,开启期间,这台 Mac 上以你的身份运行的任何程序都能读取全部验证码。从 0.1.x 升级的用户保持原来的设置。
  • GoldenPassport 只在检查更新时联网,而且只在你要求时才检查...
Read more