Coverage for pass_import/managers/andotp.py: 100%
10 statements
« prev ^ index » next coverage.py v7.4.3, created at 2024-02-26 12:11 +0000
« prev ^ index » next coverage.py v7.4.3, created at 2024-02-26 12:11 +0000
1# -*- encoding: utf-8 -*-
2# pass import - Passwords importer swiss army knife
3# Copyright (C) 2017-2024 Alexandre PUJOL <alexandre@pujol.io>.
4#
6from pass_import.core import register_managers
7from pass_import.formats.otp import OTP
10class AndOTP(OTP):
11 """Importer for AndOTP plain or encrypted JSON format."""
12 name = 'andotp'
13 format = 'json'
14 url = 'https://github.com/andOTP/andOTP'
15 hexport = 'Backups> Backup plain'
16 himport = 'pass import andotp file.json'
17 json_header = [{
18 'secret': str,
19 'label': str,
20 'digits': int,
21 'type': str,
22 'algorithm': str,
23 'thumbnail': str,
24 'last_used': int,
25 'tags': list
26 }]
29register_managers(AndOTP)