Creating a salt in python

>>> import random >>> ALPHABET = “0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ” >>> chars=[] >>> for i in range(16): chars.append(random.choice(ALPHABET)) >>> “”.join(chars) ‘wE9mg9pu2KSmp5lh’ This should work.

What is SALT and how do i use it?

I am definitely not an expert, but the really short answer is that “salting” a line of text means to stick a few extra characters on the end of it. You could salt “salt” with “abcdefg” to get “saltabcdefg”. This might be useful if “salt” happens to be a password that you’d like to make … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)