Author Topic: Secure hash generation in proftpd and mysql  (Read 88 times)

Offline wubi

  • New user
  • *
  • Posts: 1
    • View Profile
Secure hash generation in proftpd and mysql
« on: January 25, 2017, 03:57:24 pm »
I am running a ProFTPD server on ubuntu 12.04. And  do my user authentication with mysql. But there is a problem, I could not see a way to generate a secure hash with salt in mysql. You can generate a MD5 or SHA1/2 hash, but no secure hash like PBKDF2 or bcrypt.

I consult the proftpd manuel and saw that you can do the user authentication with PBKDF2 with the mod (mod sql passwd), but as I have written bevore I could not see a way to generate a PBKDF2 hash in mysql

Could anyone help me please?

Thanks in advance


Offline castaglia

  • Administrator
  • Support Hero
  • *****
  • Posts: 5221
    • View Profile
    • http://www.castaglia.org/
Re: Secure hash generation in proftpd and mysql
« Reply #1 on: January 25, 2017, 08:13:49 pm »
If you want to store a PBKDF2 or scrypt password hash in your MySQL table, you will need to use tools other than MySQL to generate that hash.  MySQL does not provide builtin functions for all of the types of password hashes that you might want to use.