A Simple Encryption Tool that also saves and retreive files from Google Drive with OneLine-Commands
Project description
CryptDrive
Simple Cryptography Tool that saves and retrives files from your G Drive with a single line of command. Make use of unlimited cloud storage provided by Google.
Unlimited Storage for Any Organization
Google provides unlimited storage for Any Organization using GSuite. But the Organization has access to the files you stored on the unlimited GSuite Drive. To Prevent them accessing, We can encrpyt. CryptDrive provides you One-Line solution for this. Using oneline commands you can get unlimited storage.
Install Dependencies
pip3 install google-api-python-client
pip3 install cryptography
pip3 install oauth2client
pip3 install google-auth-oauthlib
Usage
First things first
- Get your own API-KEY from Google,
credentials.json
file will be generated. Place that in the working directory along with source code. - Use this link to generate your own
credentials.json
. - Click Enable Google Drive API to Generate.
- Choose
Desktop App
from the dropdown. - Then Click
Download Client Configuration
. credentials.json
will be downloaded.- Since, all the Authentication process is taken care by Google we have access only to API.
credentials.json
Contains only API-KEY.
Setup KEY
from CryptDrive import CryptDrive
CryptDrive.setup()
to generate NEWKEY based on your Password. Key will be generated and saved askey.key
in Current active Directory.- Make a Secure Backup of the key file. If it is lost, your data cant be retreived.
- Make sure
key.key
file is placed in working directory.
One-Line Wonders
CryptDrive.push(PATH_TO_FILE)
. This Command will encrypt push the file to the Drive using default Browser.CryptDrive.pull(FILE_NAME_OF_THE_ENCRYPTED_PUSHED_TO_DRIVE)
to decrypt pull the file to the working directory.CryptDrive.pushdir(PATH_TO_DIR)
- To encrypt and push directory and its files to Google Drive.CryptDrive.decrypt(PATH_TO_FILE)
- To decrpt encrypted file locally.CryptDrive.encrypt(PATH_TO_FILE)
- To encrypt file locally.CryptDrive.decryptdir(PATH_TO_FOLDER)
- To decrpt encrypted folder locally.CryptDrive.encryptdir(PATH_TO_FOLDER)
- To encrypt folder locally.CryptDrive.mkdir(NEW_DIR_NAME_IN_GDRIVE)
- To Create NEW directory in google driveCryptDrive.lookfor(FILE_NAME)
- To search in Google Drive- Make sure
key.key
file is placed in working directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CryptDrive-0.1.1.tar.gz
(4.7 kB
view details)
File details
Details for the file CryptDrive-0.1.1.tar.gz
.
File metadata
- Download URL: CryptDrive-0.1.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4454c5bbb1060af454107675479f2cbe34d2be122d41816541c9b5d126b1840 |
|
MD5 | 230f40888f2a3d6f0f1c6205e829e8e0 |
|
BLAKE2b-256 | 76935d5f916f0df218dee3a0a48d2d7eb21d2d76d9de658c6544a2a2d35a7507 |