Comments (7)
That’s currently not possible and I’m not sure how to make it possible because argon2 tended to break API quite often in the past. Until very recently, nobody packaged argon2 either, so it wasn’t a legitimate problem at all.
from argon2-cffi.
I understand your point. Also most people probably just want to pip install argon2_cffi
and have everything work, instead of having to install a library first.
However, I looked a bit further into the issue: In my fork of the project, there is a branch "system-argon2-poc" which contains two commits. One commit simply disables building libargon2 from the submodule. The second commit changes the include and library paths to /usr/include
and /usr/lib
in _ffi_build.py
. I have argon2-20161029 installed on my system.
When I build and install this to a virtualenv, I can import and use the argon2 module:
$ python
Python 3.4.6 (default, Sep 10 2017, 15:00:18)
[GCC 5.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import argon2
>>> argon2.hash_password_raw(b'1234')
b"\xb5\xe5'\x0b!r\xae\xe5t\x1a\x82\xf6\xb2\x1f\xa9z"
Do you see a way to make these changes configurable in setup.py?
from argon2-cffi.
There turns out to be a setup.py config
step, which I didn't know of. I allows specifying things such as include-dirs
and library-dirs
:
python setup.py config --help
from argon2-cffi.
The same options are also available for the build_ext
command, which seems to be more recent than config
and is already executed when calling the install
command. See python setup.py build_ext --help
.
from argon2-cffi.
closed by #29
from argon2-cffi.
Thank you for making this happen!
And for pushing out a new release. I will try to make v18.1.0 land as a Gentoo Linux package.
from argon2-cffi.
You’re welcome and sorry it took so long. It was a delight working with you; I just wasn’t in a good place FOSS-time wise and changes to this lib are quite scary due to the impact if I screw up.
from argon2-cffi.
Related Issues (20)
- RFC is no longer a draft (RFC9106); default parameter choice out of date HOT 4
- 21.2.0: pep517 does not build cython modules HOT 6
- 21.1.0: `notebook` test suite is crashing with SIGILL in _cffi_backend.cpython.*so DSO HOT 11
- Inconsistent advice for key derivation HOT 5
- How to avoid timing attacks? HOT 1
- hash function return + / verify issue with sqlite HOT 3
- Question: Can output from argon2.low_level.hash_secret_raw() → bytes directly used to derive aes key? HOT 3
- Associated data cannot be specified in the low_level functions HOT 10
- Support password verification without sending the password from client to server HOT 5
- Make hash verification return True or False HOT 4
- Second salt HOT 1
- hash() got an unexpected keyword argument 'salt' HOT 1
- ImportError: cannot import name 'PasswordHasher' from partially initialized module 'argon2' HOT 1
- Install with poetry on python 3.11.7 --obsolete
- Strange error, can't figure out what is causing it HOT 2
- Wheel support for linux aarch64 HOT 4
- Unable to install on Xavier NX HOT 1
- Fail to install by pip on macOS 11.0.1 Big Sur HOT 11
- 20.1.0: sphinx warnings HOT 4
- 20.1.0: pytest warnings HOT 3
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 argon2-cffi.