Jump to content

[HELP] sha256 crypting


Recommended Posts

Hi. I have came here with small question.

I've made login panel. And everything works fine with standard sha256 function. But i want add salt to passwords and i have no idea how to do it.maybe someone of you can help. Thanks

function etcetc(pass,log) --pass is string
  if log and pass then
    local passwd = sha256(pass+"salt")
    dbQuery(myBasePass,"INSERT etc etc.."passwd" ")
    end
  
 --i realy don't know what i'm doing xDD, maybe --it's time for sleep

 

Edit1 Nevermind. Contagenation in lua is made by two dots operand. Small thing. And can take whole day.

Edited by Prever77
Link to comment
  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...