Questions tagged [passlib]

passlib is a Python library for key derivation and hashing functions

See also

50 questions
0
votes
1 answer

TypeError: '_PasslibRegistryProxy' object is not callable Passlib/Python error on website

Working on a project site with user creation/login this morning. The code was working fine on localhost. I pushed the code to my heroku account and left for the day. This evening I returned home and began testing the site. I was getting an exception…
Jordon Gonzales
  • 171
  • 1
  • 7
0
votes
1 answer

Spring compatible scrypt password with python passlib

How can I generate Spring compatible passwords from python? I've got a spring application creating scrypt passwords that look like this in the…
gregn
  • 1,260
  • 1
  • 14
  • 25
0
votes
1 answer

Why does Pycryptodome MAC check fail when encrypting and decrypting JSON files?

I am trying to do encrypt some JSON data with AES-256, using a password hashed with pbkdf2_sha256 as the key. I want to store the data in a file, be able to load it up, decrypt it, alter it, encrypt it, store it, and repeat. I am using the passlib…
Uriah Wardlaw
  • 87
  • 2
  • 7
0
votes
1 answer

Proper way of using passlib with Flask

Using Python and Flask I've created register page with name, email, password and confirm password fields. In order to store passwords in the DB in encrypted format I went for passlib. I've reached a point where this code doesn't work which is to be…
excessive
  • 3
  • 2
0
votes
0 answers

passlib checksum doesn't verifies with SHA2 of MySQL

I am using vernemq to authorize users from database using SHA256 algorithm. I observe that when creating new entry in table using buildin mqsql function SHA2, INSERT INTO vmq_auth_acl (mountpoint, client_id, username, password,…
Anum Sheraz
  • 2,383
  • 1
  • 29
  • 54
0
votes
1 answer

WARNING: Could not find packages folder or virtual environment. ModuleNotFoundError: No module named 'xxxxx' in Azure App Services

I have the following error in a Python application deployed to linux in Azure App Services. 2019-03-27T21:19:19.356340459Z WARNING: Could not find packages folder or virtual environment. 2019-03-27T21:19:19.356340459Z File…
Terry
  • 1,621
  • 4
  • 25
  • 45
0
votes
1 answer

Cracking hashes using passlib.pbkdf2_sha256.verify

We have a set of hashes and we want to compare them with the passwords contained in the famous rockyou.txt. We have written a code which iteratively converts each entry in rockyou.txt to hash and compares it with our single hash using:…
user1
  • 336
  • 1
  • 6
  • 17
0
votes
2 answers

Verifying a password with £ or $ characters failing using passlib

I'm using passlib==1.7.1 with the following import: from passlib.apps import custom_app_context as pwd_context Then hashing the password with the following: pwd_context.encrypt(password) I then verify with: pwd_context.verify(password,…
Doug
  • 665
  • 2
  • 8
  • 22
0
votes
1 answer

passlib cannot be imported when using uwsgi

I'm using flask-restful and wanted to use bcrypt from passlib to hash users passwords stored in database, when I run the solution by python3 app.py, everything works perfectly and I can hash the passwords and validate them , but when I run the…
0
votes
1 answer

"Inconsistent digest name" errors with passlib and Flask Security

I've got a GAE app built with Flask Security (which is awesome BTW). Everything works great, but I'm getting errors like this in my GAE logs: /.../lib/passlib/crypto/digest.py:414: PasslibRuntimeWarning: inconsistent digest name: 'md5' resolved…
new name
  • 15,861
  • 19
  • 68
  • 114
0
votes
1 answer

Can't verify password using passlib

So I'm back working on old project and I cant find whats wrong. This is the part where the password is first time created, this is from the main script: def first(): if os.path.isfile("secret.txt"): folder() else: …
Raptr3x
  • 13
  • 4
0
votes
0 answers

Odoo Server Error while running on mac ox sierra

I'm using mac os x Sierra i have a problem while executing ./odoo-bin , then i already installed the passlib correctly . I don't know why i have this error Traceback (most recent call last): File "./odoo-bin", line 5, in
Doudi
  • 103
  • 1
  • 1
  • 4
0
votes
1 answer

Cannot validate with table record while logging in using Python

I have my own signin/login functionality in my APP. At the time registering I am encrypting the password using passlib hash method and storing the encrypted value inside table. But my problem is while I am trying to logged in it could not match the…
satya
  • 3,508
  • 11
  • 50
  • 130
0
votes
1 answer

passlib not importing in python

I get the following error when I try to import passlib. ImportError: No module named passlib.apps I have tried to install it via the following commands to install it and they claim it is sucess or it is already there yet my program still refuses…
rockets4all
  • 684
  • 3
  • 8
  • 32
0
votes
1 answer

python passlib verify doesn't match

I am working with Flask and MongoDB, trying to implement username / password verification with passlib. The class from models.py : from passlib.hash import sha256_crypt class Users(object): def __init__(self, username='', password='',…
Kuruwan
  • 54
  • 1
  • 8