Commit Graph

132 Commits

Author SHA1 Message Date
Zack Scholl
95bec30262 fix progress bar 2018-04-23 23:55:19 -06:00
Zack Scholl
b6df5839b8 Add local option
change local receive code
2018-04-23 23:55:14 -06:00
Zack Scholl
22d7a1d42d determine stdin automatically 2018-04-23 23:52:31 -06:00
Zack Scholl
68b937f4cb Allow auto-receive 2018-04-23 23:52:30 -06:00
Zack Scholl
39e2a20a6f Fix debug progressbar bug and make sure to clean enc.0 2018-04-23 23:52:30 -06:00
Zack Scholl
78df00f7ab Use stderr so stdout can be redirected 2018-04-23 23:52:30 -06:00
Travis
19bfbcb9c2 initial implementation for reading input files from stdin 2018-04-23 23:52:30 -06:00
smileboywtu
1eb07db618 add home dir config .croc 2018-04-23 23:52:29 -06:00
Zack Scholl
e8d5afe1fa Add cleanup on Ctl+C 2018-04-23 23:52:28 -06:00
陈博
407d85270c fix file split bugs and sending server:port display error 2018-02-07 16:24:44 +08:00
Zack Scholl
152c27a5e9 Bug fix: remove race condition for startTime 2017-11-05 07:07:35 -07:00
Zack Scholl
8ff1fe1d2a Bug fix: tarring in Windows and untarring in Linux
Also updated depdencies
2017-11-04 05:38:27 -06:00
Zack Scholl
32a25323c5 progressbar api 2017-10-26 12:30:56 -06:00
Zack Scholl
e3ff37cce8 Use a home-rolled progressbar 2017-10-26 12:23:50 -06:00
Zack Scholl
d134e7986f Shorten the UI bar 2017-10-25 09:44:08 -06:00
Zack Scholl
2001e13057 Simplified UI 2017-10-25 06:10:03 -06:00
Mr. Joja
36b546406d removed duplicated code on transfer speed message 2017-10-25 01:01:01 -06:00
Mr. Joja
414507ab1c fix types mismatched with transfer duration 2017-10-25 00:28:41 -06:00
Mr. Joja
dd6cf4ba76 fixed typo in time.Since function 2017-10-24 23:51:11 -06:00
Mr. Joja
c173987d7b added file/folder transfer time 2017-10-24 22:40:48 -06:00
Zack Scholl
3fd9a345c4 Fix data races #44 2017-10-24 08:43:35 -06:00
h3yEllex
81312a6647 Removed redunant else statement 2017-10-24 13:02:55 +03:00
h3yEllex
3f606bb87d removed unnecessary if statement 2017-10-24 12:13:04 +03:00
Zack Scholl
dbb5ddf2b6 Minor improvements to UI 2017-10-22 11:26:53 -06:00
Zack Scholl
1ea8d9196f Better UI and check for overwriting file 2017-10-22 10:44:18 -06:00
Zack Scholl
f8505caa27 Delete receiver key if sender is not present and not waiting Fixes #39 2017-10-22 10:36:44 -06:00
Zack Scholl
9c6d672272 Added flag for unencrypted files 2017-10-22 10:28:31 -06:00
Zack Scholl
6b9cc84313 Simplified UI for sending directories 2017-10-22 10:24:55 -06:00
Zack
7fbfe7cecc Merge pull request #37 from threefjord/master
Adding -save and -ask-save flags, joining paths when necessary
2017-10-22 09:28:05 -06:00
Camille Eyriès
b8d2e1bede receive directories to \'croc_received\' 2017-10-22 12:14:46 +02:00
Brad Lunsford
b559e8f27e Adding -save and -ask-save flags, joining paths when necessary 2017-10-21 21:05:08 -07:00
Zack
3bd96564f7 Merge pull request #35 from jesuiscamille/master
Automatically compress directory to a tar.gz archive
2017-10-21 17:15:54 -06:00
Camille Eyriès
14a168c908 export isDir 2017-10-22 00:55:34 +02:00
Camille Eyriès
0df9890b8b fix weird bug and remove tmp file after use 2017-10-22 00:28:06 +02:00
Zack Scholl
23e19b009c Broken 2017-10-21 16:07:44 -06:00
Camille Eyriès
0040f7161d Automatically compress directory to tar.gz archive 2017-10-21 23:52:03 +02:00
Zack Scholl
ac31f61a50 Add bitly link for public server 2017-10-21 15:35:58 -06:00
Zack Scholl
79c81a3c5d Better error handling 2017-10-21 14:38:27 -06:00
Zack Scholl
c42302d3de More errors 2017-10-21 14:29:48 -06:00
Zack Scholl
ebe14faf4c Better help message if server is down 2017-10-21 13:51:19 -06:00
Zack Scholl
ed82893767 Bug fix: only send file name not file path
Fixes #32
2017-10-21 12:45:44 -06:00
Marcos
416e0f110a Break from for loop if time exceeds an hour 2017-10-21 18:02:26 +02:00
Zack
550bd9a8e6 Only print if main thread 2017-10-20 19:51:02 -06:00
Zack Scholl
a43e61b78a Split encrypted bits into chunks to send in parallel 2017-10-20 19:09:40 -06:00
Zack Scholl
5eff228a3d Add catfiles 2017-10-20 18:49:19 -06:00
Zack Scholl
7e6169dc03 Fix error 2017-10-20 16:46:01 -06:00
Zack Scholl
da16d6f4d7 Merge branch 'master' of git://github.com/Lunsford94/croc into Lunsford94-master 2017-10-20 16:44:03 -06:00
Brad Lunsford
6bdbdce655 ran 'go fmt *.go' to (hopefully) get rid of commit issues 2017-10-20 15:18:06 -07:00
Brad Lunsford
798a0d2c52 Adding sleep time of 1 second if not waiting and code not present 2017-10-20 15:11:29 -07:00
Bradley T Lunsford
eb3af56ccf adding wait funtionality: if waiting, will send a different identification to the server 2017-10-20 14:51:30 -07:00
lummie
e2faa87b59 Issue #25
fixed spelling connectionMap.receiver
Added method to detect if sender and receivers are already connected.
Added client code to correctly action "no" returned by the code being in use.
2017-10-20 21:51:03 +01:00
Zack Scholl
7ad54dced3 Need to add concurrent reading from the file
Perhaps using this: https://play.golang.org/p/kyusY5Dc0W
2017-10-20 11:20:45 -06:00
Zack Scholl
9e1d7b4460 Whoops, didn't mean to delete this #25 2017-10-20 10:04:57 -06:00
Zack Scholl
c3cd3d6039 Streaming encryption and hashing and update UI
Fixes #19
Fixes #18
2017-10-20 06:25:48 -06:00
Zack
bf9021c925 Merge pull request #23 from techtide/master
Quits program if a file already exists.
2017-10-19 21:24:58 -06:00
Matthew B. Gray
f1102c0062 Add rate option so sender can restrict outgoing speed
closes #7
2017-10-20 14:20:03 +13:00
Zack Scholl
a6927a3143 Starting to implement streaming cipher 2017-10-19 19:08:13 -06:00
Arman Bhalla
c5291cb6ad Quits program if a file already exists (issue 22). 2017-10-19 22:29:37 +01:00
Zack Scholl
fd71dc2b78 Force single thread if small file Fixes #5 2017-10-18 09:07:13 -06:00
Zack Scholl
a8cfbe25d1 Better code input 2017-10-18 07:59:58 -06:00
Zack Scholl
a058386d1b Better ui 2017-10-18 07:09:32 -06:00
Zack Scholl
eae21303f2 Refactor works 2017-10-18 07:05:48 -06:00
Zack Scholl
adb3f59a51 Send meta data in one chunk 2017-10-17 22:21:10 -06:00
Zack Scholl
87ef13b548 Handle more errors 2017-10-17 22:12:35 -06:00
Zack Scholl
e98117a847 Handle more errors 2017-10-17 22:11:40 -06:00
Zack Scholl
0fbe32caea Handle more errors 2017-10-17 22:08:58 -06:00
Zack Scholl
09bcda2705 Turn off decryption 2017-10-17 22:04:59 -06:00
Zack Scholl
109fef84d0 Turn off decryption 2017-10-17 22:03:48 -06:00
Zack Scholl
5e1068961e Add more trimming 2017-10-17 21:57:42 -06:00
Zack Scholl
f29b197783 Add more trimming 2017-10-17 21:54:52 -06:00
Zack Scholl
8fa40cf95c Add more trimming 2017-10-17 21:52:27 -06:00
Zack Scholl
7291d87398 Add more trimming 2017-10-17 21:50:31 -06:00
Zack Scholl
63664b7e78 Add more trimming 2017-10-17 21:48:35 -06:00
Zack Scholl
eb1b5a076c Store file data in memory when transfering 2017-10-17 21:40:20 -06:00
Zack Scholl
3ab0f92bd8 Send sha256sum and check it Fixes #2 2017-10-17 21:28:32 -06:00
Zack Scholl
0cf680fd66 Encryption works, cleanup is good 2017-10-17 21:15:48 -06:00
Zack Scholl
302db87079 Fixed hash 2017-10-17 20:33:27 -06:00
Zack Scholl
cd92fd6c8f ENcrypt file before sending 2017-10-17 20:25:33 -06:00
Zack Scholl
f143ab5455 Send hash instead of code phrase Fixes #3 2017-10-17 20:19:09 -06:00
Zack Scholl
0d2afdaed1 Use cowyo by default 2017-10-17 19:06:59 -06:00
Zack Scholl
c3956b059e localhost->serverAddress 2017-10-17 18:45:52 -06:00
Zack Scholl
df622467dd Rewrite 2017-10-17 18:43:12 -06:00