mirror of
https://github.com/HACKERALERT/Picocrypt.git
synced 2025-01-01 20:32:17 +00:00
Update Picocrypt.go
This commit is contained in:
parent
6d00d4c43f
commit
8e476f04e8
1 changed files with 13 additions and 9 deletions
|
@ -297,15 +297,19 @@ func startUI(){
|
||||||
// Prompt for password
|
// Prompt for password
|
||||||
giu.Row(
|
giu.Row(
|
||||||
giu.Label("Password:"),
|
giu.Label("Password:"),
|
||||||
giu.SmallButton("Generate").OnClick(func(){
|
giu.Custom(func(){
|
||||||
tmp := genPassword()
|
if mode!="decrypt"{
|
||||||
password = tmp
|
giu.SmallButton("Generate").OnClick(func(){
|
||||||
cPassword = tmp
|
tmp := genPassword()
|
||||||
passwordStrength = zxcvbn.PasswordStrength(password,nil).Score
|
password = tmp
|
||||||
giu.Update()
|
cPassword = tmp
|
||||||
}),
|
passwordStrength = zxcvbn.PasswordStrength(password,nil).Score
|
||||||
giu.SmallButton("Copy").OnClick(func(){
|
giu.Update()
|
||||||
clipboard.WriteAll(password)
|
}).Build()
|
||||||
|
giu.SmallButton("Copy").OnClick(func(){
|
||||||
|
clipboard.WriteAll(password)
|
||||||
|
}).Build()
|
||||||
|
}
|
||||||
}),
|
}),
|
||||||
giu.Dummy(-200,0),
|
giu.Dummy(-200,0),
|
||||||
giu.Label(keyfilePrompt),
|
giu.Label(keyfilePrompt),
|
||||||
|
|
Loading…
Reference in a new issue