久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

        <tfoot id='WKGfW'></tfoot>

        <small id='WKGfW'></small><noframes id='WKGfW'>

      1. <i id='WKGfW'><tr id='WKGfW'><dt id='WKGfW'><q id='WKGfW'><span id='WKGfW'><b id='WKGfW'><form id='WKGfW'><ins id='WKGfW'></ins><ul id='WKGfW'></ul><sub id='WKGfW'></sub></form><legend id='WKGfW'></legend><bdo id='WKGfW'><pre id='WKGfW'><center id='WKGfW'></center></pre></bdo></b><th id='WKGfW'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WKGfW'><tfoot id='WKGfW'></tfoot><dl id='WKGfW'><fieldset id='WKGfW'></fieldset></dl></div>
        <legend id='WKGfW'><style id='WKGfW'><dir id='WKGfW'><q id='WKGfW'></q></dir></style></legend>
        • <bdo id='WKGfW'></bdo><ul id='WKGfW'></ul>
      2. 我的密碼鹽應(yīng)該多長時間,SHA-256 是否足夠好?

        How long should my password salt be, and is SHA-256 good enough?(我的密碼鹽應(yīng)該多長時間,SHA-256 是否足夠好?)
          <tbody id='65KlX'></tbody>

            <small id='65KlX'></small><noframes id='65KlX'>

              <i id='65KlX'><tr id='65KlX'><dt id='65KlX'><q id='65KlX'><span id='65KlX'><b id='65KlX'><form id='65KlX'><ins id='65KlX'></ins><ul id='65KlX'></ul><sub id='65KlX'></sub></form><legend id='65KlX'></legend><bdo id='65KlX'><pre id='65KlX'><center id='65KlX'></center></pre></bdo></b><th id='65KlX'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='65KlX'><tfoot id='65KlX'></tfoot><dl id='65KlX'><fieldset id='65KlX'></fieldset></dl></div>
              1. <tfoot id='65KlX'></tfoot>
                <legend id='65KlX'><style id='65KlX'><dir id='65KlX'><q id='65KlX'></q></dir></style></legend>

                  <bdo id='65KlX'></bdo><ul id='65KlX'></ul>

                  本文介紹了我的密碼鹽應(yīng)該多長時間,SHA-256 是否足夠好?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在創(chuàng)建一個游戲社區(qū)網(wǎng)站,我打算盡快向公眾發(fā)布.目前,我正在處理密碼和登錄信息.我之前只使用過 MD5,但我已經(jīng)閱讀了有關(guān)密碼安全的文章,并聽說目前可以使用 salting.

                  I'm in the process of creating a gaming community site that I'm aiming to release to the public soon. Currently, I'm working on passwords and logins. I've only used MD5 before, but I've read about password safety and heard that salting is currently the way to go.

                  這是我的計(jì)劃:每個用戶都有自己獨(dú)特的 12 個隨機(jī)字符(#/¤& 等),存儲在 users 表中.鹽在注冊時與密碼一起散列(使用 SHA-256),并在登錄時重新散列.

                  Here's my plan: Every user has their own unique salt of 12 random characters (#/¤& etc), stored in the users table. The salt is hashed (using SHA-256) along with the password on registration, and re-hashed on login.

                  這聽起來如何?我有什么可以改進(jìn)的嗎?我應(yīng)該選擇 SHA-512 和更長的鹽,還是這樣就足夠了?

                  How does this sound to you? Anything I can improve? Should I go for SHA-512 and a longer salt, or is this enough?

                  推薦答案

                  您建議的 12 個字節(jié)應(yīng)該是鹽的足夠長度.這需要字典攻擊來準(zhǔn)備 296 個散列密碼數(shù)據(jù)庫.總有一天,這對破解者來說可能是一項(xiàng)微不足道的操作,但我們離實(shí)現(xiàn)這一目標(biāo)還有很長的路要走.

                  Your suggestion of 12 bytes should be an adequate length for a salt. That would require a dictionary attack to prepare 296 databases of hashed passwords. Someday this might be a trivial operation for a cracker, but we're still a ways off from that.

                  NIST 推薦 SHA256,因?yàn)樗哂凶銐虻拿艽a散列強(qiáng)度,至少目前是這樣.

                  SHA256 is recommended by NIST as having adequate hashing strength for passwords, at least for now.

                  如果您想探索更強(qiáng)大的密碼安全方法,請研究密鑰強(qiáng)化技術(shù),例如 PBKDF2,或使用 Bcrypt 進(jìn)行自適應(yīng)散列.但是這些在 SQL 中沒有直接支持.您必須在應(yīng)用程序代碼中進(jìn)行散列,然后將散列摘要發(fā)布到您的數(shù)據(jù)庫中.

                  If you want to explore even stronger methods of password security, look into key-strengthening techniques like PBKDF2, or adaptive hashing with Bcrypt. But these have no direct support in SQL. You'd have to do the hashing in application code and then post the hash digest to your database.

                  對于游戲網(wǎng)站來說,這似乎是一種過度的安全措施,但這樣做是一種很好的做法.因?yàn)樵S多用戶(不明智地)使用相同的密碼登錄游戲和登錄銀行!您不想為間接導(dǎo)致重大損失的身份驗(yàn)證違規(guī)行為負(fù)責(zé).

                  It may seem like security overkill for a gaming site, but it's a good practice to do it. Because many users (inadvisably) use the same password for their gaming login as they do for their banking login! You don't want to be responsible for an authentication breach that leads indirectly to major losses.

                  這篇關(guān)于我的密碼鹽應(yīng)該多長時間,SHA-256 是否足夠好?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標(biāo)不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術(shù)方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅(qū)動程序)

                  1. <small id='ng8zG'></small><noframes id='ng8zG'>

                        <tbody id='ng8zG'></tbody>
                      <tfoot id='ng8zG'></tfoot>
                        <bdo id='ng8zG'></bdo><ul id='ng8zG'></ul>

                        <legend id='ng8zG'><style id='ng8zG'><dir id='ng8zG'><q id='ng8zG'></q></dir></style></legend>

                          1. <i id='ng8zG'><tr id='ng8zG'><dt id='ng8zG'><q id='ng8zG'><span id='ng8zG'><b id='ng8zG'><form id='ng8zG'><ins id='ng8zG'></ins><ul id='ng8zG'></ul><sub id='ng8zG'></sub></form><legend id='ng8zG'></legend><bdo id='ng8zG'><pre id='ng8zG'><center id='ng8zG'></center></pre></bdo></b><th id='ng8zG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ng8zG'><tfoot id='ng8zG'></tfoot><dl id='ng8zG'><fieldset id='ng8zG'></fieldset></dl></div>
                            主站蜘蛛池模板: 黄片毛片在线观看 | 超碰人人在线 | 欧美日本一区二区三区 | 99九九久久| 成人免费毛片果冻 | 黄色片毛片 | 成年人午夜视频 | 91视频免费观看 | 国产一区在线视频 | aa一级片 | 欧美成人一级 | 激情婷婷 | 在线观看黄色小视频 | 欧美一区二区三 | 国产成人久久精品麻豆二区 | 四虎在线视频 | 精品日韩一区 | 久色91| 欧美aaaaa| 日韩av资源| 99视频网站| 日韩亚洲一区二区 | 精品国产一区二区三 | 国产在线麻豆精品观看 | 欧美日韩成人在线 | 中文字幕在线观看免费 | 久久免费网 | 三级在线看 | 久久久www成人免费精品 | 黄色成人在线观看 | 精品一二三区 | 性生活毛片 | 成人免费av | 国产午夜免费视频 | 久久久一区二区三区 | 欧美性猛交一区二区三区精品 | 成人免费网站黄 | 超碰在线观看97 | 国产不卡在线观看 | 一区二区三区影视 | 午夜免费 |