add mastodon

This commit is contained in:
ace
2021-02-10 02:28:20 +03:00
parent b923f6310b
commit 53135a82fe
3 changed files with 22 additions and 1 deletions

14
pwgen/vapid.go Normal file
View File

@ -0,0 +1,14 @@
package main
import (
webpush "github.com/SherClockHolmes/webpush-go"
)
func main() {
privateKey, publicKey, err := webpush.GenerateVAPIDKeys()
print("vapidPrivateKey: ", privateKey, "\n")
print("vapidPublicKey: ", publicKey, "\n")
if err != nil {
// TODO: Handle error
}
}