Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterupfold/import-to-pass-from-1password-6
Import to Pass from 1Password 6 .txt (TSV) export
https://github.com/peterupfold/import-to-pass-from-1password-6
Last synced: 5 days ago
JSON representation
Import to Pass from 1Password 6 .txt (TSV) export
- Host: GitHub
- URL: https://github.com/peterupfold/import-to-pass-from-1password-6
- Owner: PeterUpfold
- License: apache-2.0
- Created: 2022-02-05T16:12:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-05T16:12:41.000Z (almost 3 years ago)
- Last Synced: 2024-11-08T09:51:04.896Z (about 2 months ago)
- Language: PowerShell
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Import to Pass from 1Password 6 .txt (TSV) export
This script is a work-in-progress of importing into [Pass](https://www.passwordstore.org/) from a 1Password 6 (for Mac) text-separated values (TSV) file export (using the .txt extension).
This is experimental and should not be relied upon -- it _should_ pull across all the fields in the export, but you are at your own risk. Don't delete your source data!
Make sure to tidy up properly (e.g. `shred -u`) unencrypted copies of your export. I recommend working with these files on a `tmpfs` to avoid unnecessary saving of unencrypted password data on disk.
This currently does not handle the data structure in a particuarly formalised manner -- perhaps in the future this needs to dump the fields into the `pass` destination files in JSON?
## Why PowerShell?
I don't know if it is just my 1Password database, but I had issues with other languages CSV/TSV parsing of my exports. PowerShell's `Import-Csv` seemed to be quite tolerant of the "weirdness". Also, I like PowerShell, and I'm delighted it's on more platforms than just Windows.
## Usage
pwsh import-to-pass-from-1password-6.ps1 -File /tmp/yourexport.txt
## Licence
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.