gpg encryption support (#162)

* gpg encryption support

* gpg encryption support

* refinement

* refactor using protonmail opengpg

* warning

* remove exception in linting

* reduce I/O on decrypt

* fix typo

* streaming in encrypt

* Update README.md

do not reference server public hosting version in encrypt/decrypt headers example

* linting

* linting fix

* increase default random-token-length to 10
This commit is contained in:
Andrea Spacca
2023-03-11 10:08:55 +09:00
committed by GitHub
parent 28fc9c73f5
commit 3b777e1c19
7 changed files with 227 additions and 28 deletions

View File

@@ -2,11 +2,12 @@ package cmd
import (
"fmt"
"github.com/dutchcoders/transfer.sh/server/storage"
"log"
"os"
"strings"
"github.com/dutchcoders/transfer.sh/server/storage"
"github.com/dutchcoders/transfer.sh/server"
"github.com/fatih/color"
"github.com/urfave/cli"
@@ -290,7 +291,7 @@ var globalFlags = []cli.Flag{
cli.IntFlag{
Name: "random-token-length",
Usage: "",
Value: 6,
Value: 10,
EnvVar: "RANDOM_TOKEN_LENGTH",
},
}