sim590 / dpaste Goto Github PK
View Code? Open in Web Editor NEWA simple pastebin for light values (max 64KB) using OpenDHT distributed hash table (with support for encryption).
License: GNU General Public License v3.0
A simple pastebin for light values (max 64KB) using OpenDHT distributed hash table (with support for encryption).
License: GNU General Public License v3.0
Currently, paste links are good for 10 minutes. Longer lifetime would be very useful.
This would imply to use OpenDHT's permanent
functionality which republishes values every 10 minutes (with a safety time offset). Therefore, there is the need for a background node running. Then, the way to communicate with it would be through the proxy built-in functionality (see #20).
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/cipher.h:35:25: error: no template named 'variant' in namespace 'std'
using Parameters = std::variant<GPGParameters, AESParameters>;
~~~~~^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/cipher.h:54:75: error: use of undeclared identifier 'Parameters'
processPlainText(std::vector<uint8_t> plain_text, std::shared_ptr<Parameters>&& params) = 0;
^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/cipher.h:65:77: error: use of undeclared identifier 'Parameters'
processCipherText(std::vector<uint8_t> cipher_text, std::shared_ptr<Parameters>&& params) = 0;
^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/cipher.h:75:71: error: use of undeclared identifier 'Parameters'
static std::shared_ptr<Cipher> get(Scheme scheme, std::shared_ptr<Parameters>&& init_params={});
^
In file included from /usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/gpgcrypto.cpp:30:
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/gpgcrypto.h:48:75: error: use of undeclared identifier 'Parameters'
processPlainText(std::vector<uint8_t> plain_text, std::shared_ptr<Parameters>&& params) override;
^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/gpgcrypto.h:51:77: error: use of undeclared identifier 'Parameters'
processCipherText(std::vector<uint8_t> cipher_text, std::shared_ptr<Parameters>&& params) override;
^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/gpgcrypto.cpp:67:93: error: use of undeclared identifier 'Parameters'
std::vector<uint8_t> GPG::processPlainText(std::vector<uint8_t> plain_text, std::shared_ptr<Parameters>&& params)
^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/gpgcrypto.cpp:88:74: error: use of undeclared identifier 'Parameters'
GPG::processCipherText(std::vector<uint8_t> cipher_text, std::shared_ptr<Parameters>&& params)
^
8 errors generated.
[2/4] /usr/bin/c++ -DPACKAGE_NAME=\"dpaste\" -DVERSION=\"0.3.3\" -I/usr/local/include -I/usr/local/include/curlpp -I/usr/local/include/glibmm-2.4 -I/usr/local/lib/glibmm-2.4/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -I/usr/local/include/nlohmann -DBUFFERSIZE=1024 -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -I/usr/local/include/nlohmann -DBUFFERSIZE=1024 -std=gnu++14 -MD -MT CMakeFiles/dpaste.dir/src/bin.cpp.o -MF CMakeFiles/dpaste.dir/src/bin.cpp.o.d -o CMakeFiles/dpaste.dir/src/bin.cpp.o -c /usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.cpp
FAILED: CMakeFiles/dpaste.dir/src/bin.cpp.o
/usr/bin/c++ -DPACKAGE_NAME=\"dpaste\" -DVERSION=\"0.3.3\" -I/usr/local/include -I/usr/local/include/curlpp -I/usr/local/include/glibmm-2.4 -I/usr/local/lib/glibmm-2.4/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/sigc++-2.0 -I/usr/local/lib/sigc++-2.0/include -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -I/usr/local/include/nlohmann -DBUFFERSIZE=1024 -O2 -pipe -fno-omit-frame-pointer -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer -I/usr/local/include/nlohmann -DBUFFERSIZE=1024 -std=gnu++14 -MD -MT CMakeFiles/dpaste.dir/src/bin.cpp.o -MF CMakeFiles/dpaste.dir/src/bin.cpp.o.d -o CMakeFiles/dpaste.dir/src/bin.cpp.o -c /usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.cpp
In file included from /usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.cpp:29:
In file included from /usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.h:34:
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/cipher.h:35:25: error: no template named 'variant' in namespace 'std'
using Parameters = std::variant<GPGParameters, AESParameters>;
~~~~~^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/cipher.h:54:75: error: use of undeclared identifier 'Parameters'
processPlainText(std::vector<uint8_t> plain_text, std::shared_ptr<Parameters>&& params) = 0;
^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/cipher.h:65:77: error: use of undeclared identifier 'Parameters'
processCipherText(std::vector<uint8_t> cipher_text, std::shared_ptr<Parameters>&& params) = 0;
^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/cipher.h:75:71: error: use of undeclared identifier 'Parameters'
static std::shared_ptr<Cipher> get(Scheme scheme, std::shared_ptr<Parameters>&& init_params={});
^
In file included from /usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.cpp:29:
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.h:70:76: error: no member named 'Parameters' in namespace 'dpaste::crypto'
std::string paste(std::vector<uint8_t>&& data, std::unique_ptr<crypto::Parameters>&& params);
~~~~~~~~^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.h:71:81: error: no member named 'Parameters' in namespace 'dpaste::crypto'
std::string paste(std::stringstream&& input_stream, std::unique_ptr<crypto::Parameters>&& params) {
~~~~~~~~^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.h:73:54: error: no member named 'Parameters' in namespace 'dpaste::crypto'
std::forward<std::unique_ptr<crypto::Parameters>>(params));
~~~~~~~~^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.h:73:75: error: expected a type
std::forward<std::unique_ptr<crypto::Parameters>>(params));
^
/usr/ports/misc/dpaste/work/dpaste-0.3.3-55-gf27df83/src/bin.h:74:6: error: expected '}'
}
^
Revision 0.3.3-55-gf27df83
.
FreeBSD 11.2 amd64
Using gettext seems like the way to go.
This should be fast and easy add-on to the project.
/usr/ports/misc/dpaste/work/dpaste-0.3.3/src/main.cpp:40:10: fatal error: 'json.hpp' file not found
#include <json.hpp>
^~~~~~~~~~
1 error generated.
nlohmann-json
has cmake files, they should be used to detect its header location.
FreeBSD 11.2 amd64
Currently, a small python script running a REST API HTTP server is supported, but it is quite limited compared to the proxy. Using OpenDHT's builtin proxy client code would be more robust and remove the need for some of our own dependencies.
Paired with a node running continuously in the background, this would potentially greatly speed up requests.
__cxa_thread_call_dtors: dtr 0x8019e4a30 from unloaded dso, skipping
It doesn't appear that anything is actually pasted, retrieval operation returns silently without doing anything.
Version 0.3.3
FreeBSD 11.2 amd64
I have a package that is being reviewed for version 0.3.3.
For the moment, only AUR is supported. I'd appreciate having official package in ArchLinux.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.