This module is more a proof of concept of making cryptography with Bash rather than a reliable plugin.
Features:
- Anonymous download
- Anonymous & account upload
- Support shares
- Upload chuck by chunk successively not simultaneously
- Folder link listing
Restrictions:
- Account password must not exceed 16 characters
Anonymous download:
$ plowdown 'https://mega.co.nz/#!EqkzGDoT!E9mAzHvHTsKmORXrzBlstUdGDWxQCMghpng-GoRhRRK'
Note: Don't forget to simple quote links because !
is reserved by Bash for history substitution.
Concerning file encryption (AES-128-CTR), mega does not check cipher itself but only verify correct meta-MAC (64-bit hash) and well formed data (using AES 128-bit key + 2*32-bit IV). Technically, any symmetric cipher could be used, even plaintext!
Use --ignore-crc
switch to ignore meta-MAC mismatch: allow to get the file even if meta-MAC verification fails.
Account upload (public file):
$ plowup mega -a 'email:password' <file>
Note: :
is the separator character for login and password.
# In a (local or remote) folder. Specify leaf name only, no path.
$ plowup mega -a 'email:password' --folder=MyBackup <file>
Note: Anonymous upload (i.e. ephemeral session) has been disabled by mega in early 2014.
Account upload (private file):
$ plowup mega -a 'email:password' --private <file>
Optional options:
--nossl
: use HTTP upload url instead of HTTPS--eu
: useeu.api.mega.co.nz
servers instead ofg.api.mega.co.nz
--multi=N
: uses curl's--next
switch to process several chunks at once (requires curl 7.36+)
Upload process is slow and inefficient because file is cut into chunks which are uploaded successively. It's not advised to use with big files.
Anonymous public folder:
$ plowlist 'https://mega.co.nz/#F!94wGHLbd!nx8UQbcMZTuFGMhJvFk_ZQ'