All Projects → louisabraham → Ffpass

louisabraham / Ffpass

Licence: mit
Import and Export passwords for Firefox Quantum 🔑

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ffpass

Gopassbridge
A web extension for firefox and chrome to insert login credentials from gopass
Stars: ✭ 182 (-44.68%)
Mutual labels:  password-manager, browser, firefox
Pfp
Manage your passwords easily and securely, via browser extension for Firefox, Chrome, Opera
Stars: ✭ 77 (-76.6%)
Mutual labels:  password-manager, firefox
Browser Addon
Kee adds free, secure and easy password management features to your browser which save time and keep your private data more secure.
Stars: ✭ 386 (+17.33%)
Mutual labels:  password-manager, firefox
Buttercup Browser Extension
🌏 Buttercup browser extension
Stars: ✭ 164 (-50.15%)
Mutual labels:  password-manager, firefox
Supercookie
💭 Inspiration
Stars: ✭ 3,630 (+1003.34%)
Mutual labels:  browser, firefox
Extension Create
Create modern cross-browser extensions with no build configuration.
Stars: ✭ 167 (-49.24%)
Mutual labels:  browser, firefox
Singlefile
Web Extension for Firefox/Chrome/MS Edge and CLI tool to save a faithful copy of an entire web page in a single HTML file
Stars: ✭ 4,417 (+1242.55%)
Mutual labels:  browser, firefox
Surfingkeys Conf
A SurfingKeys configuration which adds 130+ key mappings for 20+ sites & OmniBar search suggestions for 50+ sites
Stars: ✭ 137 (-58.36%)
Mutual labels:  browser, firefox
Python Scripts
Collection of Various Python Script's.💻
Stars: ✭ 195 (-40.73%)
Mutual labels:  password-manager, browser
keywi
Minimalistic Keepass plugin using Web Extensions and KeepassHTTP.
Stars: ✭ 33 (-89.97%)
Mutual labels:  firefox, password-manager
qubes-app-split-browser
Tor Browser (or Firefox) in a Qubes DisposableVM, with persistent bookmarks and login credentials
Stars: ✭ 33 (-89.97%)
Mutual labels:  firefox, password-manager
Offline Qr Code
📱 Browser add-on allowing you to quickly generate a QR code offline with the URL of the open tab or other text!
Stars: ✭ 193 (-41.34%)
Mutual labels:  browser, firefox
Lazy
Kule Lazy4 / CSS Framework
Stars: ✭ 147 (-55.32%)
Mutual labels:  browser, firefox
Firefoxlite
Emerging Market Experiment
Stars: ✭ 251 (-23.71%)
Mutual labels:  browser, firefox
Keepassbrowserimporter
KeePass 2.x plugin which imports credentials from various browsers.
Stars: ✭ 139 (-57.75%)
Mutual labels:  browser, firefox
Passcards
A 1Password-compatible command-line and web-based password manager
Stars: ✭ 134 (-59.27%)
Mutual labels:  password-manager, firefox
Firefox Ios
Firefox for iOS
Stars: ✭ 10,638 (+3133.43%)
Mutual labels:  browser, firefox
Brotab
Control your browser's tabs from the command line
Stars: ✭ 137 (-58.36%)
Mutual labels:  browser, firefox
Wpt
Test suites for Web platform specs — including WHATWG, W3C, and others
Stars: ✭ 3,573 (+986.02%)
Mutual labels:  browser, firefox
Hackbrowserdata
Decrypt passwords/cookies/history/bookmarks from the browser. 一款可全平台运行的浏览器数据导出解密工具。
Stars: ✭ 3,864 (+1074.47%)
Mutual labels:  browser, firefox

PyPI version Downloads

ffpass - Import and Export passwords for Firefox Quantum

The latest version of Firefox doesn't allow to import or export the stored logins and passwords as a file.

This tools interacts with the encrypted password database of Firefox to provide these features.

Installation

ffpass requires Python 3.6+ and will work with Firefox 58+

pip install ffpass

Features

  • Supports master passwords
  • Automatic profile selection for Linux, macOS and Windows
  • Export to CSV
  • Import from CSV compatible with Google Chrome

Note: Firefox must be closed during the whole process, as these actions change its database.

Note: If you have Sync enabled, you'll have to disconnect and reconnect your Firefox account after importing the passwords.

Export to CSV

ffpass export > passwords.csv
ffpass export -f passwords.csv
ffpass export --file passwords.csv

Usage

usage: ffpass export [-h] [-t TO_FILE] [-d DIRECTORY] [-v]

outputs a CSV with header `url,username,password`

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  file to export password (defaults to stdout)
  -d DIRECTORY, --directory DIRECTORY, --dir DIRECTORY
                        Firefox profile directory
  -v, --verbose

Import from CSV

ffpass import < passwords.csv
ffpass import -f passwords.csv
ffpass import --file passwords.csv

By default, it works with the passwords exported from Google Chrome.

Usage

usage: ffpass import [-h] [-f FROM_FILE] [-d DIRECTORY] [-v]

imports a CSV with columns `url,username,password` (order insensitive)

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  file to import from (defaults to stdin)
  -d DIRECTORY, --directory DIRECTORY, --dir DIRECTORY
                        [Firefox profile directory](https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-profile)
  -v, --verbose

Formatting

For CSV files not exported from Google Chrome, take these formatting rules into consideration:

1. The CSV must have the headers "url", "username", and "password". Any other columns will be safely ignored.
2. The url must be formatted to include all prefixes ("http://", "https://", etc), or ffpass will not be able to read them correctly.
3. ffpass does not care if the CSV has quotes around fields, even if some fields have them and others don't.

Transfer from Google Chrome to Firefox

Now, Firefox can more accurately import logins saved in Chrome/Chromium on Windows and macOS (including timestamps, deduping, http auth. logins, etc.) so you don't need to use this tool on those operating systems. See File > Import from Another Browser… in Firefox to import.

Export from Google Chrome

  1. Open Chrome and enter the following in the address bar: chrome://flags/#PasswordExport
  2. Click Default next to “Password export” and choose Enabled.
  3. Click Relaunch Now. Chrome will restart.
  4. Click the Chrome menu in the toolbar and choose Settings.
  5. Scroll to the bottom and click Advanced.
  6. Scroll to the “Passwords and forms” section and click “Manage passwords”.
  7. Click next to Saved Passwords and choose Export.
  8. Click Export Passwords, enter the password you use to log in to your computer, and save the file to passwords.csv (or any other available name).

(instructions from https://support.1password.com/import-chrome/)

Import in Firefox

  1. Stop Firefox
  2. Import into Firefox:
ffpass import --file passwords.csv

Restart Firefox, making sure it didn't leave any process still open.

Transfer from Firefox to Google Chrome

Export from Firefox

  1. Stop Firefox
  2. Export from Firefox:
ffpass export --file passwords.csv

Import in Google Chrome

  1. Open Chrome and enter the following in the address bar: chrome://flags/#PasswordImport
  2. Click Default next to “Password import” and choose Enabled.
  3. Click Relaunch Now. Chrome will restart.
  4. Click the Chrome menu in the toolbar and choose Settings.
  5. Scroll to the bottom and click Advanced.
  6. Scroll to the “Passwords and forms” section and click “Manage passwords”.
  7. Click next to Saved Passwords and choose Import.
  8. Select the file passwords.csv and click Import.

Troubleshoot

  • ffpass export: error: the following arguments are required: -d/--directory/--dir

    It means one of the following (launch with option --verbose to know):

    • Automatic profile selection is not supported for your platform.
    • There is more than one user profile for Firefox.

    You have to provide the --dir option with your Firefox Profile Folder. To find it, follow these instructions on the website of Firefox.

  • Firefox password database is empty. Please create it from Firefox.

    It means that Firefox currently doens't store any password. ffpass cannot create the password database for security reasons. Just add one password manually to Firefox to create the database.

  • TypeError: 'PosixPath' object is not iterable

    See #17.

  • Empty url field ("example.com") in Firefox after importing: the urls of the source csv file must begin with a scheme (http://, https://, ftp://, etc…)

  • Passwords do not sync to other devices, including Lockwise app.

    Importing passwords break the sync. You'll have to disconnect the Firefox account in the Sync options and the re-add it.

Credits

Thanks a lot to @lclevy for the retro-engineering! I was inspired by his repository https://github.com/lclevy/firepwd.

Support of the last version of Firefox and unit tests are the great work of @lmcclell.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].