Commit Graph

653 Commits

Author SHA1 Message Date
Zack Scholl 4f9532b761 remove old comments 2018-09-23 18:00:00 -06:00
Zack Scholl da9634c949 change buffer size 2018-09-23 18:00:05 -06:00
Zack Scholl b2939a0452 fix websocket address 2018-09-23 18:00:00 -06:00
Zack Scholl 2788a4e742 communicate tcp port to sender/receiver 2018-09-23 18:00:00 -06:00
Zack Scholl 384de31c5a allow TCP connections as alternative 2018-09-23 18:00:00 -06:00
Zack Scholl 177612f112 update buffer 2018-09-23 18:00:00 -06:00
Zack Scholl 2f800f1de3 add buffer size 2018-09-23 18:00:00 -06:00
Zack Scholl 8797d35fa1 use single variable for buffer size 2018-09-23 18:00:00 -06:00
Zack Scholl c9dab1ca44 gather file info async, encrypt file info 2018-09-23 18:00:00 -06:00
Zack Scholl 76cb610ffd exchange IP addresses 2018-09-23 18:00:00 -06:00
Zack Scholl d860fe1e9e better ui handling with spinner 2018-09-23 18:00:00 -06:00
Zack Scholl 8afc75f1fc listen for interrupt in websockets 2018-09-23 18:00:00 -06:00
Zack Scholl 0a0c0bfd32 send local/public status 2018-09-23 18:00:00 -06:00
Zack Scholl f3df177ba2 functions to get local/public IP 2018-09-23 18:00:00 -06:00
Zack Scholl 7799d2fb58 use spinner fork 2018-09-23 18:00:00 -06:00
Zack Scholl 232f3375b1 only compress if its not a directory 2018-09-22 10:59:45 -07:00
Zack Scholl c6374da410 toggle encryption/compression 2018-09-22 11:57:04 -06:00
Zack Scholl f977ac24c4 add is compressed/encrypted to filestats 2018-09-22 11:57:18 -06:00
Zack Scholl 1f64d1c93a check if discovered is valid 2018-09-22 11:57:04 -06:00
Zack Scholl 10111b92cd spinner should be in stderr 2018-09-22 11:57:04 -06:00
Zack Scholl e13f8e7067 allow stdout 2018-09-22 11:57:04 -06:00
Zack Scholl 1acbe9c475 relay log more 2018-09-22 11:57:04 -06:00
Zack Scholl 73791a4dc7 change buffer size 2018-09-22 11:57:04 -06:00
Zack Scholl b469d5db4b increase write wait 2018-09-22 11:57:15 -06:00
Zack Scholl 742a935ea9 don't wait for ok 2018-09-22 11:57:11 -06:00
Zack Scholl 54b22cd732 increase buffer 2018-09-22 11:57:08 -06:00
Zack Scholl 9cf6bdf4a8 move file processing until after recipient chimes in 2018-09-22 11:57:04 -06:00
Zack Scholl 4d9455c24b add no prompt option 2018-09-22 11:57:04 -06:00
Zack Scholl 7513702e9c add transfer complete 2018-09-22 11:57:04 -06:00
Zack Scholl 66eeab25fb better spinner 2018-09-22 11:57:04 -06:00
Zack Scholl 82315ca413 recipient use public OR local 2018-09-22 11:57:04 -06:00
Zack Scholl cd3a936795 add recipient finish line 2018-09-22 11:57:04 -06:00
Zack Scholl b1aeedb107 tell server no 2018-09-22 11:57:04 -06:00
Zack Scholl 6d9c829579 prompt user if its okay to receive file 2018-09-22 11:57:04 -06:00
Zack Scholl 1add7e94c9 get receive code if empty 2018-09-22 11:57:04 -06:00
Zack Scholl f709df4d3e show spinner 2018-09-22 11:57:04 -06:00
Zack Scholl 55bd83576a show text 2018-09-22 11:57:04 -06:00
Zack Scholl 91532085c7 add more text 2018-09-22 11:57:04 -06:00
Zack Scholl f3eb85dd95 add randome name 2018-09-22 11:57:04 -06:00
Zack Scholl ebac8beaaa use stderr for output 2018-09-22 11:57:04 -06:00
Zack Scholl 40672a4eaa update readme 2018-09-22 11:57:04 -06:00
Zack Scholl 0528bb22ea determine room from first three chars of codephrase 2018-09-22 11:57:04 -06:00
Zack Scholl 4fd172b6fc fix getting hash 2018-09-22 11:57:04 -06:00
Zack Scholl 6911848141 zip should accomodate relative links 2018-09-22 11:57:04 -06:00
Zack Scholl 9af7c05dc6 remove the zip file if not debug 2018-09-22 11:57:04 -06:00
Zack Scholl c4cfa9b07f unzip in current location 2018-09-22 11:57:04 -06:00
Zack Scholl 11ab8a8078 written file should onlybe name 2018-09-22 11:57:04 -06:00
Zack Scholl a225a08dbc add exists 2018-09-22 11:57:04 -06:00
Zack Scholl 80471c7d02 hash the sent name 2018-09-22 11:56:59 -06:00
Zack Scholl f9ed7553af use sent name 2018-09-21 21:55:07 -07:00
Zack Scholl 83f199b213 add zipping to sending 2018-09-21 21:52:29 -07:00
Zack Scholl 5bf4ff1866 add dirname 2018-09-21 21:50:30 -07:00
Zack Scholl caf5511805 add zipping 2018-09-21 21:50:20 -07:00
Zack Scholl b6b6b754c9 don't show error on 1005 2018-09-21 21:40:39 -07:00
Zack Scholl 24493cf7f5 add peer discovery 2018-09-21 21:35:33 -07:00
Zack Scholl 828f83601d fix hash file 2018-09-21 21:13:46 -07:00
Zack Scholl 274fab92a1 fixes so it works (basically) 2018-09-21 20:51:43 -07:00
Zack Scholl b9dad87526 completely rewrite 2018-09-21 20:17:57 -07:00
Zack Scholl 87a17fb9e6 add go.mod 2018-09-07 08:33:39 -06:00
Zack Scholl 53e0585f21 bar finish in wrong spot 2018-07-10 13:59:44 -07:00
Zack Scholl b8f647291a increase timeouts 2018-07-10 08:43:54 -07:00
Zack Scholl 53db42fe5f update ui 2018-07-07 10:08:55 -07:00
Zack Scholl 9e02fa746c use to/from slash 2018-07-07 10:08:18 -07:00
Zack Scholl c01bc56079 wait longer on an abnormal finish 2018-07-07 10:08:18 -07:00
Zack Scholl d906630f3a try to cleanup files 2018-07-07 10:08:18 -07:00
Zack Scholl 0c920a27ab implement dynamic hash 2018-07-07 10:08:17 -07:00
Zack Scholl db50a7eee0 add bytes to progress bar 2018-07-07 10:08:17 -07:00
Zack Scholl 68d42cdadd show spinners 2018-07-07 10:08:17 -07:00
Zack Scholl 2ce63b5cda add spinner for recipient 2018-07-07 10:08:17 -07:00
Zack Scholl 11566c710d fix bug in relay which couldn't handle regular http requests 2018-07-07 10:08:17 -07:00
Zack Scholl 4e88975ed4 use best speed 2018-07-07 10:08:17 -07:00
Zack Scholl 09a16cacd5 remove partially sent files 2018-07-07 10:08:17 -07:00
Zack Scholl 9c22753ae4 add gifs 2018-07-07 10:08:17 -07:00
Zack Scholl 594029891e don't print 2018-07-07 10:08:17 -07:00
Zack Scholl 280faf7657 implement HEAD request 2018-07-07 10:08:17 -07:00
Zack Scholl 846e3d5d00 show the transfer rate 2018-07-07 10:08:16 -07:00
Zack Scholl 8373e374cd discover faster 2018-07-07 10:08:16 -07:00
Zack Scholl efee59f541 check meta data for decryption flag 2018-07-07 10:08:16 -07:00
Zack Scholl 7be11a6fda flag is no compress 2018-07-07 10:08:16 -07:00
Zack Scholl bc34811750 encrypt only if flagged 2018-07-07 10:08:16 -07:00
Zack Scholl ba3fa6ffce Make sure to remove croc-stdin 2018-07-07 10:08:16 -07:00
Zack Scholl a1611ccc88 don't broadcast channel 2018-07-07 10:08:16 -07:00
Zack Scholl 0ec32e3f9a clean up after local file transfer 2018-07-07 10:08:16 -07:00
Zack Scholl 551160d601 always require code 2018-07-07 10:08:16 -07:00
Zack Scholl 7f423cda26 fix address bug 2018-07-07 10:08:16 -07:00
Zack Scholl 91c95a5a8c fix address bug 2018-07-07 10:08:16 -07:00
Zack Scholl 22220e54a7 use correct local ip if sending locally 2018-07-07 10:08:16 -07:00
Zack Scholl f315a0bb79 add stdin 2018-07-07 10:08:15 -07:00
Zack Scholl ebad469554 cleanup after returning 2018-07-07 10:08:15 -07:00
Zack Scholl d255f3bba0 stdout 2018-07-07 10:08:15 -07:00
Zack Scholl 909e82323d stdout 2018-07-07 10:08:15 -07:00
Zack Scholl 1ceed5de35 stdout 2018-07-07 10:08:15 -07:00
Zack Scholl 0539e425d2 stdout 2018-07-07 10:08:15 -07:00
Zack Scholl b09955561f print other 2018-07-07 10:08:15 -07:00
Zack Scholl 5ca6a6455e print other 2018-07-07 10:08:15 -07:00
Zack Scholl 2e545e6594 add no-local 2018-07-07 10:08:15 -07:00
Zack Scholl 51f3de95a7 fix bug 2018-07-07 10:08:15 -07:00
Zack Scholl f4d607a4cf fix bug 2018-07-07 10:08:15 -07:00
Zack Scholl bc5f4b7131 fix bug 2018-07-07 10:08:15 -07:00
Zack Scholl 5a21ff6729 update 2018-07-07 10:08:15 -07:00
Zack Scholl 66e510f735 compute addresses 2018-07-07 10:08:15 -07:00
Zack Scholl 6164bc37d5 compute addresses 2018-07-07 10:08:15 -07:00
Zack Scholl ca9fafed55 compute addresses 2018-07-07 10:08:14 -07:00
Zack Scholl 3d24c0e258 compute addresses 2018-07-07 10:08:14 -07:00
Zack Scholl 816c25b05b compute addresses 2018-07-07 10:08:14 -07:00
Zack Scholl 43026b9c2e compute addresses 2018-07-07 10:08:14 -07:00
Zack Scholl dd8d8ee4ce improve relay 2018-07-07 10:08:14 -07:00
Zack Scholl e055918656 move pake to library 2018-07-07 10:08:14 -07:00
Zack Scholl 1223b3e51d specify relay ports 2018-07-07 10:08:14 -07:00
Zack Scholl ae7ceca3b7 add siec as default 2018-07-07 10:08:14 -07:00
Zack Scholl f6abf9c4e8 use siec 2018-07-07 10:08:14 -07:00
Zack Scholl a9969b161f use elliptic curve interface 2018-07-07 10:08:14 -07:00
Zack Scholl d1d5b02f27 copy over info 2018-07-07 10:08:14 -07:00
Zack Scholl 0d71cde941 carry over file info 2018-07-07 10:08:14 -07:00
Zack Scholl bf7a1bbdff discovering 2018-07-07 10:08:14 -07:00
Zack Scholl 1cdbdcb08e fix bug 2018-07-07 10:08:13 -07:00
Zack Scholl 2b61224707 fix bug 2018-07-07 10:08:13 -07:00
Zack Scholl bda038b8fc add testing data 2018-07-07 10:08:13 -07:00
Zack Scholl 1d316e6fbe add peer discovery 2018-07-07 10:08:13 -07:00
Zack Scholl b2885a7d95 add peer discovery 2018-07-07 10:08:13 -07:00
Zack Scholl 2c444ad400 add peer discovery 2018-07-07 10:08:13 -07:00
Zack Scholl f7c22067d4 add peer discovery 2018-07-07 10:08:13 -07:00
Zack Scholl aa0c5acc60 add basic ui 2018-07-07 10:08:13 -07:00
Zack Scholl d95c90de44 building the ui 2018-07-07 10:08:13 -07:00
Zack Scholl f1b62ea30d check if file exists 2018-07-07 10:08:13 -07:00
Zack Scholl 0d5836b4e8 fix zipping 2018-07-07 10:08:13 -07:00
Zack Scholl adff8400be not quite working 2018-07-07 10:08:13 -07:00
Zack Scholl 919de910cb update models 2018-07-07 10:08:13 -07:00
Zack Scholl 837a66e975 fix options 2018-07-07 10:08:13 -07:00
Zack Scholl fa1b2af314 works 2018-07-07 10:08:13 -07:00
Zack Scholl eb3251a93f lock websockets 2018-07-07 10:08:12 -07:00
Zack Scholl 0ab25185d3 reorganized files 2018-07-07 10:08:12 -07:00
Zack Scholl 59fc697b4f add zip file 2018-07-07 10:08:12 -07:00
Zack Scholl 6e27bfebdd receiving file works 2018-07-07 10:08:12 -07:00
Zack Scholl 98374c31cd file stuff ready 2018-07-07 10:08:12 -07:00
Zack Scholl 0bf384dd82 file transfer ready 2018-07-07 10:08:12 -07:00
Zack Scholl 72e2d4d3d8 pake works between two clients 2018-07-07 10:08:12 -07:00
Zack Scholl f6751dadb9 add pake 2018-07-07 10:08:12 -07:00
Zack Scholl 283bf704a2 todo: make big.Ints part of channelData 2018-07-07 10:08:12 -07:00
Zack Scholl f64427f70d simplify setup 2018-07-07 10:08:12 -07:00
Zack Scholl 7d07ccfe40 update the secret variables 2018-07-07 10:08:12 -07:00
Zack Scholl 87c935dc1e update the curve in client 2018-07-07 10:08:12 -07:00
Zack Scholl b32d7060bf sender + receiver mildly working 2018-07-07 10:08:11 -07:00
Zack Scholl 22cd0afd11 websockets working 2018-07-07 10:08:11 -07:00
Zack Scholl 7a1f0f66cd consolidate structures 2018-07-07 10:08:11 -07:00
Zack Scholl 6f1e6f3da8 move to websockets 2018-07-07 10:08:11 -07:00
Zack Scholl ffebb472b9 remove globals 2018-07-07 10:08:11 -07:00
Zack Scholl b2dc1f32f8 cleanup dangling channels 2018-07-07 10:08:11 -07:00
Zack Scholl e557869afd simplified api 2018-07-07 10:08:11 -07:00
Zack Scholl 7656b102c7 add crypto, utils 2018-07-07 10:08:11 -07:00
Zack Scholl ce8135002c add api and divide into relay+server 2018-07-07 10:08:11 -07:00
Zack Scholl 5ede3186e5 first attempt 2018-07-07 10:08:11 -07:00
Zack Scholl 84f732b662 start over 2018-07-07 10:08:10 -07:00