Home  >  Q&A  >  body text

php - cookie加密秘钥

对用户cookie加密的秘钥,既可以有强一致性,还不需读库,求个方法(用户登录时存用户信息,需要一个秘钥,求这个秘钥设计方法)

習慣沉默習慣沉默2683 days ago495

reply all(2)I'll reply

  • 给我你的怀抱

    给我你的怀抱2017-05-16 13:10:55

    Then this key can only be spliced ​​by getting timestamps and the like

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-16 13:10:55

    This is what I do: device number (if there is a client device number) + user account + timestamp + custom characters (to further prevent guessing) to concatenate it. You can also combine it with the md5 algorithm to add a password to the whole

    reply
    0
  • Cancelreply