nagasurendra commited on
Commit
b5855da
·
verified ·
1 Parent(s): ea81834

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -7,7 +7,9 @@ sf = Salesforce(username='[email protected]',
7
  import bcrypt
8
 
9
  def hash_password(password):
 
10
  return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()).decode('utf-8')
 
11
  def verify_password(plain_password, hashed_password):
12
  return bcrypt.checkpw(plain_password.encode('utf-8'), hashed_password.encode('utf-8'))
13
  def signup(name, email, phone, password):
 
7
  import bcrypt
8
 
9
  def hash_password(password):
10
+ # This will generate a hash that may exceed 60 characters
11
  return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()).decode('utf-8')
12
+
13
  def verify_password(plain_password, hashed_password):
14
  return bcrypt.checkpw(plain_password.encode('utf-8'), hashed_password.encode('utf-8'))
15
  def signup(name, email, phone, password):