We were looking to create a password field in Grist for our internal application. Obviously, we need to hash the passwords. I thought we could do something like this in a formula column, but it doesn’t do anything. Maybe I’m misunderstanding our formula columns work? Just a newbie here. Any help appreciated.
import bcrypt # example password password = 'password123' bytes = password.encode('utf-8') salt = bcrypt.gensalt() hash = bcrypt.hashpw(bytes, salt) return hash