Ok I installed rust and gcc (already have git) and I followed the instructions pretty much and get this.
[root@localhost blindsite]# cargo run --example basic_encryptor – -e /home/blindsite/02\ Track\ 02.m4a
Process didn’t exit successfully: rustc -vV (exit code: 127)
— stderr
rustc: error while loading shared libraries: librustc_driver-4e7c5e5c.so: cannot open shared object file: No such file or directory
[root@localhost blindsite]#
By the way I’m wondering what the other commands are. Obviously this is a command line program but what are all the commands and their oporators? Is there like a help file or manual?
I don’t know if this is your problem, but I notice that the path to the file that you’re encrypting has forward slashes and backslashes in it. Your path also appears to have spaces in it.
Backslashes cause me issue in git bash in windows. Perhaps they’re an issue in linux as well. I’ve been using \\ instead of just \ when I needed a backslash.
I just googled for your error, and this popped up. It seems like you might have to set an environment variable to point to where rust is putting the libraries.
--help [POSIX compliant] is the default help screen. this is an example only so when we build libs we supply simple examples to show devs howto include it in their applications. So do not think of this as an application. It would take several hours, probably a whole day to make it into a nice wee app with a gui etc. but the point here is we just show how to use the API in as simple a way as possible.
In this case it probably does not cater for spaces in the command line I would think. that’s fixed by probably adding " marks around the path with spaces. It’s typical for command line parameters as the prog or parser for command line args has no way to tell if you are supplying multiple things.
Try " in this case, but better take the example and make yourself a secure dropbox addon or similar Then it starts to get cool
[Edit - when we are feature complete in tesnet3 though these will turn into example applications that will hopefully inspire]
Okay I’m reading the link provided and quite frankly I’m confused as to what command I should issues or where to find the appropriate library to edit. God I feel like such an idiot.
How long would it take to make it a nice wee functional command line app with a readable man page?
You may need to close your terminal window and reopen it, or logout and log back in again, before it will read your .bashrc file to act on the line you just added. It only reads it when you log in I think.
Okay even after updating the bash file like you showed me I’m still getting this.
e /home/blindsite/02_Track_02.m4a
Process didn’t exit successfully: rustc -vV (exit code: 127)
— stderr
rustc: error while loading shared libraries: librustc_driver-4e7c5e5c.so: cannot open shared object file: No such file or directory
If you go into self_encryptor/target/debug/examples (I think)
You’ll find the basic_encryptor and can execute it to get the help, pretty basic! as follows
$ ./basic_encryptor -h
Usage: basic_encryptor -h
basic_encryptor -e <target>
basic_encryptor -d <target> <dest>
Options:
-h, --help This message.
-e, --encrypt encrypt a file.
-d, --decrypt decrypt a file,
Now if there was a file in here called “mysong.mp3” (note no spaces in the name) you could type:
$ ./basic_encryptor -e mysong.mp3
And after that to see the output $ ls -l should show a new file (datamap) and a new directory (chunk_store_test) which contains the chunks.
This is just a tiny demo program, really intended to help devs understand how to use this library to build other stuff. It isn’t for ordinary users so no point if providing copious docs. This forum is for that Good luck!
Ok I think we’re making progress but we’re still getting errors.
[blindsite@localhost self_encryption]$ cargo run --example basic_encryptor – -e /home/blindsite/02_Track_02.m4a
Updating registry https://github.com/rust-lang/crates.io-index
An unknown error occurred
To learn more, run the command again with --verbose.
[blindsite@localhost self_encryption]$ cargo run --example basic_encryptor – -e /home/blindsite/02_Track_02.m4a --verbose
Updating registry https://github.com/rust-lang/crates.io-index
An unknown error occurred
To learn more, run the command again with --verbose.
[blindsite@localhost self_encryption]$