Questions tagged as 'bcrypt'

1
answer

beforeupdate sequelize does not work

I'm trying to make the data update encrypt the user's password, but it simply does not work and does not give an error. Have the following sequelize model. import bcrypt from 'bcrypt'; export default (sequelize, DataType) => { c...
asked by 28.11.2016 / 06:36
1
answer

How to use the bcrypt function of laravel?

I have a .php file in the public folder of Laravel and for bigger reasons I can not create a controller of it. However I need to use the bcrypt function to generate the password an encrypted password, but I can not use this functio...
asked by 09.09.2017 / 03:00
1
answer

Error trying to encrypt with BCRYPT in Python

Code: import bcrypt hashed = bcrypt.hashpw('teste',bcrypt.gensalt()) error:    TypeError: Unicode-objects must be encoded before hashing When running the program, you have this error, how can I solve it?     
asked by 15.05.2018 / 21:15
0
answers

Problems with TS - Mongoose

I am updating my MEAN API for Typescript, when I try to pass the bcrypt to generate the hash the compiler is pointing the following error src/models/User.ts(57,12): error TS2339: Property 'password' does not exist on type 'Document'....
asked by 27.09.2018 / 16:02
0
answers

Error NODE_MODULE BCRYPT

Would anyone know to tell me why this error ?? module.js:598 return process.dlopen(module, path._makeLong(filename)); ^ Error: The module '/home/fred/app/backend/node_modules/bcrypt/lib/binding/bcrypt_lib.node' was compiled...
asked by 17.04.2018 / 14:41
1
answer

Error with bcrypt in Rails 5.1

In a new project, after installing Gemfile gems, how much do I try to start the server with rails s the following error and displayed in the console: LoadError: cannot load such file -- 2.3/bcrypt_ext     
asked by 14.12.2017 / 12:57
1
answer

Mongooose Middleware to encrypt password in Schema

I'm having a hard time getting a Middleware in my schema with mongoose. I put it as save and I'm getting the error that it is not a function when I call it. See below both codes: schema.pre('save', function(next) { console.log('this gets prin...
asked by 24.08.2017 / 19:53
1
answer

NodeJS returns: Illegal arguments: number

const bodyParser = require('body-parser'); const bcrypt = require('bcryptjs'); //Bring in User Model let User = require('../models/user'); var urlencodedParser = bodyParser.urlencoded({extended: false}); module.exports = function(app){...
asked by 23.11.2017 / 21:19
1
answer

Encrypt passwords

I need to generate a default password for users of my login table. The password must be the same for all users for first access to the system. The registration already exists, but I have to modify the passwords. The problem happens when I upda...
asked by 02.06.2016 / 18:15