-
-
Notifications
You must be signed in to change notification settings - Fork 87
/
chrome.py
43 lines (36 loc) · 1.18 KB
/
chrome.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# -*- encoding: utf-8 -*-
# pass import - Passwords importer swiss army knife
# Copyright (C) 2017-2020 Alexandre PUJOL <alexandre@pujol.io>.
#
from pass_import.core import register_managers
from pass_import.formats.csv import CSV
class ChromeCSV(CSV):
"""Importer for Chrome in CSV format."""
name = 'chrome'
url = 'https://support.google.com/chrome'
hexport = ('In chrome://password-manager/settings under 2Export passwords'
'Download File')
himport = 'pass import chrome file.csv'
only = True
keys = {
'title': 'name',
'password': 'password',
'login': 'username',
'url': 'url',
'comments': 'note',
}
class ChromeCSVSQLite(CSV):
"""Importer for Chrome SQLite in CSV format."""
name = 'chrome'
default = False
url = 'https://support.google.com/chrome'
hexport = ('See this guide: https://support.google.com/chrome/'
'answer/95606#see')
himport = 'pass import chrome file.csv'
keys = {
'title': 'display_name',
'password': 'password_value',
'login': 'username_value',
'url': 'origin_url'
}
register_managers(ChromeCSV, ChromeCSVSQLite)