"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
Make error messages less crypting when revealing an unobscured password - fixes #1743
Nick Craig-Wood115053930e48
diff --git a/fs/config.go b/fs/config.goindex e8089132b..e559d56a6 100644--- a/fs/config.go+++ b/fs/config.go@@ -182,15 +182,15 @@ func MustObscure(x string) string {func Reveal(x string) (string, error) {ciphertext, err := base64.RawURLEncoding.DecodeString(x)if err != nil {- return "", errors.Wrap(err, "base64 decode failed")+ return "", errors.Wrap(err, "base64 decode failed when revealing password - is it obscured?")}if len(ciphertext) < aes.BlockSize {- return "", errors.New("input too short")+ return "", errors.New("input too short when revealing password - is it obscured?")}buf := ciphertext[aes.BlockSize:]iv := ciphertext[:aes.BlockSize]if err := crypt(buf, buf, iv); err != nil {- return "", errors.Wrap(err, "decrypt failed")+ return "", errors.Wrap(err, "decrypt failed when revealing password - is it obscured?")}return string(buf), nil}