tangled
alpha
login
or
join now
foxgirl.engineering
/
password-hash-gen
0
fork
atom
simple webpage to generate an argon2id hash for a given password
0
fork
atom
overview
issues
pulls
pipelines
view: add advanced settings ui
foxgirl.engineering
7 months ago
da9b8ca8
5c7e5d8b
verified
This commit was signed with the committer's
known signature
.
foxgirl.engineering
SSH Key Fingerprint:
SHA256:zgspAKSFKA6vB30vPBY6QSa/osCDgrr8YASW+mNz13M=
+46
2 changed files
expand all
collapse all
unified
split
src
style.css
view.tsx
+27
src/style.css
···
103
103
max-width: 700px;
104
104
}
105
105
106
106
+
.advanced-settings {
107
107
+
display: flex;
108
108
+
flex-direction: column;
109
109
+
gap: 16px;
110
110
+
margin-top: 16px;
111
111
+
112
112
+
label {
113
113
+
display: flex;
114
114
+
flex-direction: column;
115
115
+
align-items: center;
116
116
+
gap: 8px;
117
117
+
font-size: 1rem;
118
118
+
font-weight: normal;
119
119
+
120
120
+
input {
121
121
+
font-size: 1rem;
122
122
+
padding: 8px 16px;
123
123
+
}
124
124
+
}
125
125
+
}
126
126
+
106
127
@media (min-width: 750px) {
107
128
main {
108
129
padding: 32px 128px;
···
114
135
115
136
input {
116
137
width: unset;
138
138
+
}
139
139
+
140
140
+
.advanced-settings {
141
141
+
flex-direction: row;
142
142
+
gap: unset;
143
143
+
justify-content: space-around;
117
144
}
118
145
}
+19
src/view.tsx
···
34
34
/>
35
35
<button type="submit">calculate</button>
36
36
</form>
37
37
+
<details>
38
38
+
<summary>advanced settings</summary>
39
39
+
<p>
40
40
+
defaults provided match{" "}
41
41
+
<a href="https://github.com/9001/copyparty/">copyparty</a>'s
42
42
+
parameters. you should only change this if you're generating a
43
43
+
hash for something else that uses different parameters.
44
44
+
</p>
45
45
+
<div class="advanced-settings">
46
46
+
<label>
47
47
+
memory limit (in bytes)
48
48
+
<input id="memlimit" type="number" value={state.memlimit} />
49
49
+
</label>
50
50
+
<label>
51
51
+
number of computations
52
52
+
<input id="opslimit" type="number" value={state.opslimit} />
53
53
+
</label>
54
54
+
</div>
55
55
+
</details>
37
56
<label for="result">result:</label>
38
57
<input
39
58
class="result"