forked from rakyll/drive
-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
E2E: encrypt on upload(at rest remotely), decrypt on download
Fixes #543. When E2E encryption is enabled, data should only be unencrypted on the user's local disk but should always be encrypted remotely on Google Drive, if the password was provided. - When a password is provided, encrypt the data before it is received by Google Drive. Encrypt for upload: ```shell $ drive push --encryption-password foolsGold issueFilingDrive.mp4 $ cat issueFiling.txt | drive push --encryption-password "$1N4Lax" ok.enc ``` - When a password is provided, decrypt the data before writing it to disk: ```shell $ drive pull --piped --decryption-password foolsGold issueFilingDrive.mp4 > txt.v $ drive pull --decryption-password "t51L3ntNA6T" few.mp4 ```
- Loading branch information
Showing
7 changed files
with
125 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters