Update README.md

This commit is contained in:
Dennis Gunia
2020-10-02 15:40:56 +00:00
parent 005e9f71d4
commit 1517785d30

View File

@@ -99,16 +99,36 @@ ts-node .\index.ts --privkey private.key --decrypt --safe .\out\credentials.json
## Syntax ## Syntax
==> Schlüsselpaar Erzeugen ==> Schlüsselpaar Erzeugen
`ts-node .\index.ts --privkey <path-to-private-key> --pubkey <path-to-public-key> --genkey `ts-node .\index.ts --privkey <path-to-private-key> --pubkey <path-to-public-key> --genkey`
z.B. `ts-node .\index.ts --privkey private.key --pubkey public.key --genkey z.B. `ts-node .\index.ts --privkey private.key --pubkey public.key --genkey`
==> Codes Erzeugen und versenden ==> Codes Erzeugen und versenden
`ts-node .\index.ts --config <path-to-config-key> --pubkey <path-to-public-key> --send --safe .\out\credentials.json --mails <path-to-mail-list> -html <path-to-html-template> `ts-node .\index.ts --config <path-to-config-key> --pubkey <path-to-public-key> --send --safe .\out\credentials.json --mails <path-to-mail-list> -html <path-to-html-template>`
z.B. `ts-node .\index.ts --config config.json --pubkey public.key --send --safe .\out\credentials.json --mails mail.txt -html template.html z.B. `ts-node .\index.ts --config config.json --pubkey public.key --send --safe .\out\credentials.json --mails mail.txt -html template.html`
==> Safe entschlüsseln ==> Safe entschlüsseln
`ts-node .\index.ts --privkey <path-to-private-key> --decrypt --safe .\out\credentials.json `ts-node .\index.ts --privkey <path-to-private-key> --decrypt --safe .\out\credentials.json`
z.B. `ts-node .\index.ts --privkey private.key --decrypt --safe .\out\credentials.json z.B. `ts-node .\index.ts --privkey private.key --decrypt --safe .\out\credentials.json`
## Kompillierte Binaries
Die Kompilierten Binaries sind für Linux, MacOS und Windoof verfügbar: [Binaries](https://gitlab.dennisgunia.de/dennisgunia/one-time-code-js/-/tree/master/bin)`
Die befehle ändern sich wie folgt:
==> Schlüsselpaar Erzeuge
`./opentoken --privkey <path-to-private-key> --pubkey <path-to-public-key> --genkey`
z.B. `./opentoken --privkey private.key --pubkey public.key --genkey`
==> Codes Erzeugen und versenden
`./opentoken --config <path-to-config-key> --pubkey <path-to-public-key> --send --safe .\out\credentials.json --mails <path-to-mail-list> -html <path-to-html-template>`
z.B. `./opentoken --config config.json --pubkey public.key --send --safe .\out\credentials.json --mails mail.txt -html template.html`
==> Safe entschlüsseln
`./opentoken --privkey <path-to-private-key> --decrypt --safe .\out\credentials.json`
z.B. `./opentoken --privkey private.key --decrypt --safe .\out\credentials.json`