Better HN
topnewbestaskshowjobs
Log inSign up

earblast

1 karma · joined Jun 25, 2018 (8y ago) · 4 submissions

Submissions

comment 7y ago · link · parent

Hmm, seems to me using both is optimal

horrible psuedocode follows...

  cryptchoice = len(username) % 3

  switch cryptchoice:
     case 0:
       pepper = pepper[1]
       salt = email

     case 1:
       pepper = pepper[0]
       salt = creation_time
       
     case 2:
       pepper = pepper[2]
       salt = username
       
  bcrypt(salt+password+pepper)

comment 7y ago · link · parent

What can someone use as a salt that is unique to a user that would not be in that record as plain-text and guess-able? Creation timestamp? email? username?

comment 7y ago · link · parent

Being colorblind, This map is completely useless. At least the table is there