Comments (6)
Could you modify this package so that it includes libsodium? https://github.com/pyca/pynacl/ works out of the box on any platform but they lack many of the functions (as does this one, although different ones, go figure - but at least this one is being developed while pynacl hasn't released since May 2020). Certainly you can take from their Github whatever is needed to make it work without installing DLLs by hand?
from pysodium.
i think it would be worthwhile to find out why this dll is not found on your system, even as you say you put it into various places. as far as i understand loadlibrary should load the libraries from where your system normally stores them. if loadlibrary cannot find the library then it's probably in the wrong place. i have little experience with windows, but i seem to remember your libraries need to be on the path, have you tried putting the lib in system32 i think that should be by default on the path. otherwise i read by googling that setx path also alters the path system-wise. but i'm really guessing here i have no idea about windows.
from pysodium.
i'm not sure sys.path is the right path to check, sys.path is for python modules, libsodium is not a python module. is it possible that it would be enough to pass 'libsodium-64' to ctypes.util.find_library? and have the library in any of the directories where windows is looking for dlls normally?
from pysodium.
If windows does have something similar to $LD_LIBRARY_PATH it might make sense to set that instead correctly.
from pysodium.
Would it be possible to parameterize the import so that the user of the library could specify the path to where the DLL is? I'm not immediately sure how to do that given that python lacks parametrized imports and pysodium imports the lib automatically without requiring something like an init() call.
from pysodium.
sorry i have no access to windows hosts.
from pysodium.
Related Issues (20)
- New release for crypto_stream_xchacha20_xor support HOT 2
- crypto_generichash ValueError HOT 2
- crypto_secretbox_open_easy is missing HOT 1
- value of crypto_secretstream_xchacha20poly1305_MESSAGEBYTES_MAX bigger than it should be HOT 3
- ability to check version of pysodium in-code missing HOT 2
- Stale Python Pakcage index (2016-06-02) HOT 1
- Harmonize the interface of crypto_aead_chacha20poly1305_* HOT 1
- Inconsistent copyright for test/ HOT 2
- test_crypto_generichash fails with libsodium 1.0.13 HOT 14
- crypto_secretstream* functions? HOT 92
- Input range checking HOT 39
- crypto_aead _NPUBBYTES vs. _NONCEBYTES HOT 8
- Newly added functions lack version checks HOT 6
- PyPi version number not compliant with PEP 0440? HOT 4
- crypto_auth and crypto_auth_verify use empty byte string as a key by default HOT 1
- py3 strings f*ck up generichash HOT 1
- how to use a specific algorithm HOT 7
- crypto_secretbox_detached and crypto_secretbox_open_detached HOT 6
- Expose remaining crypto_core_ ristretto crypto_core_ristretto255_add and crypto_core_ristretto255_sub HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pysodium.