Skip to content

Commit b0496d5

Browse files
committed
Basic i18n, simple file list to build Firefox ext
1 parent c6b3d4d commit b0496d5

File tree

7 files changed

+144
-18
lines changed

7 files changed

+144
-18
lines changed

README.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# PwdHash Sidebar
2-
[PwdHash](https://crypto.stanford.edu/PwdHash/) (by Stanford) generates passwords resistant to theft and phishing by hashing a combination of the sites address and your password. It is available as browser extensions ([Firefox](https://addons.mozilla.org/en-US/firefox/addon/pwdhash/), [Chrome](https://chrome.google.com/extensions/detail/dnfmcfhnhnpoehjoommondmlmhdoonca), [Opera <12](https://www.coredump.gr/pwdhash-for-opera/)), apps ([Android](https://play.google.com/store/apps/details?id=com.uploadedlobster.PwdHash&hl=de), [iOS](https://itunes.apple.com/us/app/keygrinder/id354763605), [Windows](https://github.com/mgutekunst/WP8-PwdHash)), scripts ([Ruby](https://github.com/kizzx2/pwdhash.rb), [Python](https://pypi.python.org/pypi/pwdhash.py)) or a simple page like this which uses Javascript.
2+
[PwdHash](https://crypto.stanford.edu/PwdHash/) (by Stanford) generates passwords resistant to theft and phishing by hashing a combination of the sites address and your password.
3+
It is available as browser extensions ([Firefox](https://addons.mozilla.org/en-US/firefox/addon/pwdhash/), [Chrome](https://chrome.google.com/extensions/detail/dnfmcfhnhnpoehjoommondmlmhdoonca), [Opera <12](https://www.coredump.gr/pwdhash-for-opera/)),
4+
apps ([Android](https://play.google.com/store/apps/details?id=com.uploadedlobster.PwdHash&hl=de), [iOS](https://itunes.apple.com/us/app/keygrinder/id354763605), [Windows](https://github.com/mgutekunst/WP8-PwdHash)),
5+
scripts ([Ruby](https://github.com/kizzx2/pwdhash.rb), [Python](https://pypi.python.org/pypi/pwdhash.py))
6+
or a simple web page which uses Javascript.
37

4-
Not yet supported: _[PwdHash by Cambridge](https://www.cl.cam.ac.uk/~dl551/pwdhash/) is a proof-of-concept alteration of the original Stanford PwdHash, but with a number of improvements that fix some of the weaknesses of the original. PwdHash-PoC uses the Forge implementation of PBKDF2-SHA512 to generate hashes._
8+
Not yet supported:
9+
_[PwdHash by Cambridge](https://www.cl.cam.ac.uk/~dl551/pwdhash/) is a proof-of-concept alteration of the original Stanford PwdHash, but with a number of improvements that fix some of the weaknesses of the original.
10+
PwdHash-PoC uses the Forge implementation of PBKDF2-SHA512 to generate hashes._
511

6-
This version of PwdHash is both a web extension for common browsers (like [Firefox](https://addons.mozilla.org/de/firefox/addon/pwdhash-sidebar/), Chrome and soon Edge) as well a [simple web page](https://quassy.github.io/pwdhash/). You can install it as an add-on or just save the whole page locally.
12+
This version of PwdHash is both a web extension for common browsers (like [Firefox](https://addons.mozilla.org/de/firefox/addon/pwdhash-sidebar/), Chrome and soon Edge) as well a [simple web page](https://quassy.github.io/pwdhash/).
13+
You can install it as an add-on or just save the whole page locally.
714

815
## Usage
916

@@ -22,7 +29,7 @@ This version of PwdHash is both a web extension for common browsers (like [Firef
2229
## Authors
2330
This software was created by quassy and is released under the BSD licence.
2431

25-
It is based on the previous work of several authors:
26-
Standford PwdHash: Blake Ross, Collin Jackson, Nicholas Miyake, Dan Boneh, John C. Mitchell (BSD)
27-
[md5.js](http://pajhome.org.uk/crypt/md5): Paul Johnston with Greg Holt, Andrew Kepert, Ydnar, Lostinet (BSD)
32+
It is based on the previous work of several authors:
33+
Standford PwdHash: Blake Ross, Collin Jackson, Nicholas Miyake, Dan Boneh, John C. Mitchell (BSD)
34+
[md5.js](http://pajhome.org.uk/crypt/md5): Paul Johnston & Greg Holt, Andrew Kepert, Ydnar, Lostinet (BSD)
2835
domain extractor from genpass: Chris Zarate (public domain)

_locales/de/messages.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"extensionName": {
3+
"message": "PwdHash-Sidebar"
4+
},
5+
6+
"extensionDescription": {
7+
"message": "Erzeuge Seiten-spezifische Passwörter in einer Box"
8+
},
9+
10+
"addressLabel": {
11+
"message": "Adresse"
12+
},
13+
"addressPlaceholder": {
14+
"message": "https://www.beispiel.com/"
15+
},
16+
"passwordLabel": {
17+
"message": "Passwort"
18+
},
19+
"passwordPlaceholder": {
20+
"message": "Passwort"
21+
},
22+
"pwdhashLabel": {
23+
"message": "PwdHash"
24+
},
25+
"pwdhashPlaceholder": {
26+
"message": "Zum Erzeugen tippen"
27+
},
28+
"readmeText": {
29+
"message": "Liesmich"
30+
},
31+
"readmeTitle": {
32+
"message": "Lerne wie diese Erweiterung funktioniert"
33+
},
34+
"readmeUrl": {
35+
"message": "https://github.com/quassy/pwdhash/blob/gh-pages/README.md"
36+
},
37+
38+
"actionPopup": {
39+
"message": "PwdHash-Popup (F8)"
40+
},
41+
"actionSidebar": {
42+
"message": "PwdHash-Sidebar (Strg+F8)"
43+
},
44+
45+
"shortcutPopup": {
46+
"message": "Öffne PwdHash-Popup"
47+
},
48+
"shortcutSidebar": {
49+
"message": "Öffne PwdHash-Sidebar"
50+
}
51+
}

_locales/en/messages.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"extensionName": {
3+
"message": "PwdHash Sidebar"
4+
},
5+
6+
"extensionDescription": {
7+
"message": "Generate per-site passwords in a box"
8+
},
9+
10+
"addressLabel": {
11+
"message": "Address"
12+
},
13+
"addressPlaceholder": {
14+
"message": "https://www.example.com/"
15+
},
16+
"passwordLabel": {
17+
"message": "Password"
18+
},
19+
"passwordPlaceholder": {
20+
"message": "Password"
21+
},
22+
"pwdhashLabel": {
23+
"message": "PwdHash"
24+
},
25+
"pwdhashPlaceholder": {
26+
"message": "Type to generate"
27+
},
28+
"readmeText": {
29+
"message": "Readme"
30+
},
31+
"readmeTitle": {
32+
"message": "Learn how this extension works"
33+
},
34+
"readmeUrl": {
35+
"message": "https://github.com/quassy/pwdhash/blob/gh-pages/README.md"
36+
},
37+
38+
"actionPopup": {
39+
"message": "PwdHash Popup (F8)"
40+
},
41+
"actionSidebar": {
42+
"message": "PwdHash Sidebar (Ctrl+F8)"
43+
},
44+
45+
"shortcutPopup": {
46+
"message": "Open PwdHash Popup"
47+
},
48+
"shortcutSidebar": {
49+
"message": "Open PwdHash Sidebar"
50+
}
51+
}

index.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@
2828
</form>
2929
<footer>
3030
<p>
31-
<a target="_blank" rel="noopener noreferer" href="https://github.com/quassy/pwdhash/blob/gh-pages/README.md">Readme</a>
31+
<a href="https://github.com/quassy/pwdhash/blob/gh-pages/README.md"
32+
title="Learn how this extension works"
33+
target="_blank"
34+
rel="noopener noreferer">
35+
Readme
36+
</a>
3237
</p>
3338
</footer>
3439
</body>

manifest.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
3-
"name": "PwdHash Sidebar",
4-
"description": "Generate per-site passwords in a box",
3+
"name": "__MSG_extensionName__",
4+
"description": "__MSG_extensionDescription__",
55
"icons": {
66
"16": "icon_16.png",
77
"32": "icon_32.png",
@@ -11,30 +11,31 @@
1111
"homepage_url": "https://quassy.github.io/pwdhash/",
1212
"version": "2.2.0",
1313
"permissions": ["tabs", "activeTab"],
14-
14+
"default_locale": "en",
15+
1516
"browser_action": {
1617
"default_icon": "favicon.ico",
17-
"default_title" : "PwdHash Popup (F8)",
18+
"default_title" : "__MSG_actionPopup__",
1819
"browser_style": true,
1920
"default_popup": "index.html"
2021
},
2122
"sidebar_action": {
2223
"default_icon": "favicon.ico",
23-
"default_title" : "PwdHash Sidebar (Ctrl+F8)",
24+
"default_title" : "__MSG_actionSidebar__",
2425
"default_panel": "index.html"
2526
},
2627
"commands": {
2728
"_execute_browser_action": {
2829
"suggested_key": {
2930
"default": "F8"
3031
},
31-
"description": "Open PwdHash Popup"
32+
"description": "__MSG_shortcutPopup__"
3233
},
3334
"_execute_sidebar_action": {
3435
"suggested_key": {
3536
"default": "Ctrl+F8"
3637
},
37-
"description": "Open PwdHash Sidebar"
38+
"description": "__MSG__shortcutSidebar__"
3839
}
3940
}
4041
}

style.css

-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ label, input, select, p {
3636
line-height: 24px;
3737
box-sizing: border-box;
3838
background: transparent;
39-
4039
}
4140
option {
4241
padding: 0 .5em;
@@ -60,7 +59,4 @@ input:focus, a {
6059
color: #229Dd7;
6160
border-bottom-color: #229Dd7;
6261
outline: none;
63-
}
64-
footer {
65-
text-align: center;
6662
}

zip_firefox.txt

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
zip _releases/pwdhash-sidebar.zip -@ -FS < zip_firefox.txt
2+
_locales/de/messages.json
3+
_locales/en/messages.json
4+
script/browser.js
5+
script/domain-extractor.js
6+
script/hashed-password.js
7+
script/md5.js
8+
favicon.ico
9+
icon_16.png
10+
icon_32.png
11+
icon_64.png
12+
index.html
13+
manifest.json
14+
README.md
15+
style.css

0 commit comments

Comments
 (0)