Compare commits
2 commits
05e787baba
...
e51a5f4fd7
Author | SHA1 | Date | |
---|---|---|---|
|
e51a5f4fd7 | ||
|
ced07b2dd8 |
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ You want to write it on paper, but everyone can read that.
|
||||||
PassED solves these issues by allowing you to generate single-use URLs that contain your password.
|
PassED solves these issues by allowing you to generate single-use URLs that contain your password.
|
||||||
|
|
||||||
## How it works
|
## How it works
|
||||||
When you create a password URL, PassED firstly encrypts the password in your browser using `AES-GCM`. It then uploads the encrypted password to the server, which responds with an ID that uniquely identifies that password. The AES Key and IV is then stored in the URL, along with the ID.
|
When you create a password URL, PassED firstly encrypts the password in your browser using `AES-GCM`. It then uploads the encrypted password to the server, which responds with an ID that uniquely identifies that password. The AES Key and IV (Initialization vector) is then stored in the URL, along with the ID.
|
||||||
|
|
||||||
When someone views the password, PassED looks at the URL. It knows the password ID, AES Key and IV. It reaches out to the server, asks for a password with the ID from the URL, and then decrypts it with the AES Key and IV.
|
When someone views the password, PassED looks at the URL. It knows the password ID, AES Key and IV. It reaches out to the server, asks for a password with the ID from the URL, and then decrypts it with the AES Key and IV.
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ func Env(name string, out any, def string) {
|
||||||
case *int:
|
case *int:
|
||||||
i, err := strconv.ParseInt(raw, 10, 64)
|
i, err := strconv.ParseInt(raw, 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("\"%s\" is not a number.", name)
|
log.Printf("\"%s\" is not a number (\"%s\").", name, raw)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue