Skip to content

Instantly share code, notes, and snippets.

@menyf
Last active March 14, 2023 09:47
Show Gist options
  • Save menyf/c59e63728610fe3d9454a8b0c1555277 to your computer and use it in GitHub Desktop.
Save menyf/c59e63728610fe3d9454a8b0c1555277 to your computer and use it in GitHub Desktop.
From iCloud Keychain to Elpass

从iCloud Keychain到Elpass

运行环境

  1. macOS latest
  2. Python3

准备工作

  1. 下载mrc-converter-suite并解压
  2. 保存该脚本至桌面,命名为helper.py

正式开始

首先先把Safari里的密码download到本地

  1. 打开Preference -> Security&Privacy -> Privacy -> Acceessibility,在左下角unlock,然后在右侧添加并check上Script Editor
  2. Cmd + q退出Safari
  3. 使用script editor运行Get_Safari12_Passwords.applescript
  4. 然后输入密码,按continue,等他弄完,此时你的桌面上应有一个叫做pm_export.csv的文件

然后将每个用户密码的网站整合

使用终端运行python3 helper.py,复制所有输出结果,然后粘贴到一个纯文本文件中,重命名为elpass.csv

最后导入Elpass

File -> Import -> import from .csv file 选中elpass.csv. 此时Elpass的helper程序会有五列,分别设为Title/Not Used/Username/Password/Domain,然后点import,同时check上First line contains field names。

完成

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment