Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rusq/gonss3
Subset of Mozilla NSS enough to decrypt firefox passwords
https://github.com/rusq/gonss3
3des 3des-cbc asn1-der cryptography deciphering decryption firefox password pkcs5
Last synced: about 2 months ago
JSON representation
Subset of Mozilla NSS enough to decrypt firefox passwords
- Host: GitHub
- URL: https://github.com/rusq/gonss3
- Owner: rusq
- License: lgpl-3.0
- Created: 2019-12-16T05:34:25.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-07T02:00:16.000Z (over 4 years ago)
- Last Synced: 2024-12-06T08:32:42.237Z (about 2 months ago)
- Topics: 3des, 3des-cbc, asn1-der, cryptography, deciphering, decryption, firefox, password, pkcs5
- Language: Go
- Size: 14.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gonss3
Package documentation: https://godoc.org/github.com/rusq/gonss3
Package gonss implements the subset of Mozilla NSS3 library. It implements
just enough to decrypt the firefox profile passwords.I take no credit, implementation is entirely based on [this project][4] which
is based on [Dr Stephen Henson research for "Netscape Key Databases"][1].Supports only `key4.db` (sqlite).
This library is created for educational purposes and licenced under LGPL 3.0.
## Usage
```go
package main
import "github.com/rusq/gonss3"func main() {
profile, err := gonss3.New("/path/to/profile", []byte("masterpass"))
// handle erruserCt, passCt := // fetch some data from logins.json
user,err := profile.DecryptField(userCt)
// handle err
pass,err := profile.DecryptField(passCt)
// handle errfmt.Println(user, pass)
}
```## TODO
[ ] TESTS## Useful links
* [Mozilla BPE chart][2]
* [PSWRecovery4Moz docs][3][1]: http://web.archive.org/web/20150212092002/http://www.drh-consultancy.demon.co.uk/key3.html
[2]: https://github.com/lclevy/firepwd/blob/f48522352c27c8d1868d7a3ad0f5e3da3b1b922d/mozilla_pbe.pdf
[3]: https://github.com/philsmd/pswRecovery4Moz/blob/master/pswRecovery4Moz.txt
[4]: https://github.com/lclevy/firepwd/