1
0
mirror of https://github.com/S2-/pwgen.git synced 2025-08-02 17:00:03 +02:00

4 Commits

Author SHA1 Message Date
s2
4dbd892d04 v1.1.3 2017-11-20 11:28:17 +01:00
s2
48f8b8d5bc add some more special chars 2017-11-20 11:27:36 +01:00
s2
2a0d1b0fe2 a screenshot 2017-11-16 09:42:57 +01:00
s2
710fb753b7 move everything to src 2017-11-16 09:24:32 +01:00
10 changed files with 3 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
/.project

BIN
img/screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 473 B

View File

Before

Width:  |  Height:  |  Size: 647 B

After

Width:  |  Height:  |  Size: 647 B

View File

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

@@ -2,7 +2,7 @@
"description": "Just a toolbar button that generates a password and copies it to your clipboard.",
"manifest_version": 2,
"name": "pwgen reloaded",
"version": "1.1.2",
"version": "1.1.3",
"homepage_url": "https://github.com/S2-/pwgen",
"icons": {
"48": "icons/lock-48.png"

View File

@@ -1,7 +1,7 @@
function randPassword(length, includeSpecial) {
let pwdChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890";
if (includeSpecial) {
pwdChars += '°^!"§$%&\/()=?`´\\}][{²³€|<>-.,;:*+_';
pwdChars += '°^!"§$%&/()=?`´\\}][{²³€|<>-.,;:*+_µ@~';
}
let randPassword = Array(length).fill(pwdChars).map(function(x) {
return x[Math.floor(Math.random() * x.length)]