{"id":17740600,"url":"https://github.com/rusq/gonss3","last_synced_at":"2025-03-31T21:28:03.742Z","repository":{"id":104033766,"uuid":"228310287","full_name":"rusq/gonss3","owner":"rusq","description":"Subset of Mozilla NSS enough to decrypt firefox passwords","archived":false,"fork":false,"pushed_at":"2020-07-07T02:00:16.000Z","size":15,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T10:18:10.586Z","etag":null,"topics":["3des","3des-cbc","asn1-der","cryptography","deciphering","decryption","firefox","password","pkcs5"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rusq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-16T05:34:25.000Z","updated_at":"2023-11-30T15:10:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"9d14509b-5688-476b-80bc-32f2974ba75e","html_url":"https://github.com/rusq/gonss3","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusq%2Fgonss3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusq%2Fgonss3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusq%2Fgonss3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusq%2Fgonss3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rusq","download_url":"https://codeload.github.com/rusq/gonss3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246543485,"owners_count":20794361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3des","3des-cbc","asn1-der","cryptography","deciphering","decryption","firefox","password","pkcs5"],"created_at":"2024-10-26T03:06:43.731Z","updated_at":"2025-03-31T21:28:03.722Z","avatar_url":"https://github.com/rusq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gonss3\n\nPackage documentation: https://godoc.org/github.com/rusq/gonss3\n\nPackage gonss implements the subset of Mozilla NSS3 library. It implements\njust enough to decrypt the firefox profile passwords.\n\nI take no credit, implementation is entirely based on [this project][4] which\nis based on [Dr Stephen Henson research for \"Netscape Key Databases\"][1].\n\nSupports only `key4.db` (sqlite).\n\nThis library is created for educational purposes and licenced under LGPL 3.0.\n\n## Usage\n```go\npackage main\nimport \"github.com/rusq/gonss3\"\n\nfunc main() {\n  profile, err := gonss3.New(\"/path/to/profile\", []byte(\"masterpass\"))\n  // handle err\n\n  userCt, passCt := // fetch some data from logins.json\n\n  user,err := profile.DecryptField(userCt)\n  // handle err\n  pass,err := profile.DecryptField(passCt)\n  // handle err\n\n  fmt.Println(user, pass)\n}\n```\n\n## TODO\n[ ] TESTS\n\n## Useful links\n\n* [Mozilla BPE chart][2]\n* [PSWRecovery4Moz docs][3]\n\n[1]: http://web.archive.org/web/20150212092002/http://www.drh-consultancy.demon.co.uk/key3.html\n[2]: https://github.com/lclevy/firepwd/blob/f48522352c27c8d1868d7a3ad0f5e3da3b1b922d/mozilla_pbe.pdf\n[3]: https://github.com/philsmd/pswRecovery4Moz/blob/master/pswRecovery4Moz.txt\n[4]: https://github.com/lclevy/firepwd/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusq%2Fgonss3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frusq%2Fgonss3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusq%2Fgonss3/lists"}