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

  • <i id='pIcbY'><tr id='pIcbY'><dt id='pIcbY'><q id='pIcbY'><span id='pIcbY'><b id='pIcbY'><form id='pIcbY'><ins id='pIcbY'></ins><ul id='pIcbY'></ul><sub id='pIcbY'></sub></form><legend id='pIcbY'></legend><bdo id='pIcbY'><pre id='pIcbY'><center id='pIcbY'></center></pre></bdo></b><th id='pIcbY'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='pIcbY'><tfoot id='pIcbY'></tfoot><dl id='pIcbY'><fieldset id='pIcbY'></fieldset></dl></div>

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

    <legend id='pIcbY'><style id='pIcbY'><dir id='pIcbY'><q id='pIcbY'></q></dir></style></legend>
    • <bdo id='pIcbY'></bdo><ul id='pIcbY'></ul>
    <tfoot id='pIcbY'></tfoot>

        使用 PHP 的 crypt 的河豚鹽的正確格式是什么?

        What is the correct format for a blowfish salt using PHP#39;s crypt?(使用 PHP 的 crypt 的河豚鹽的正確格式是什么?)

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

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

              • <bdo id='mC1rj'></bdo><ul id='mC1rj'></ul>

                <tfoot id='mC1rj'></tfoot>
                  <tbody id='mC1rj'></tbody>
                  本文介紹了使用 PHP 的 crypt 的河豚鹽的正確格式是什么?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我已閱讀 PHP 手冊條目 crypt() 中提供的信息,但我發現自己仍然不確定觸發 Blowfish 算法的鹽的格式.

                  根據手動輸入,我應該使用 '$2$' 或 '$2a$' 作為 16 個字符的字符串的開始.然而,在后面給出的例子中,他們使用了一個更長的字符串:'$2a$07$usesomesillystringforsalt$',這向我表明我提供的任何字符串都將被切片和切塊以適應模型.

                  我遇到的問題實際上是觸發 Blowfish 算法 vs STD_DES.示例:

                  $foo = 'foo';$salt = '$2a$' .hash('漩渦', $foo);//128 個字符,將被截斷$hash = crypt($foo, $salt);//$hash = $26HdMTpoODt6

                  那個散列顯然不是漩渦,實際上是STD_DES,只有鹽的前兩個字符用于鹽.但是,在 PHP 手冊的示例中,它們的 salt 以$2a$07$"開頭,因此如果我將這三個字符添加到同一代碼中,則會得到以下結果:

                  $foo = 'foo';$salt = '$2a$' .hash('漩渦', $foo);//128 個字符,將被截斷$hash = crypt($foo, $salt);//$hash = $2a$07$b1b2ee48991281a439da2OHi1vZF8Z2zIA.8njYZKR.9iBehxLoIC

                  我注意到我可以在此處顯示為07$"的字符中提供一些差異,例如 04$15$ 都有效,但 01$03$ 不起作用(生成一個空白字符串),以及諸如 99$ 之類的值和 85$ 導致它再次恢復為 STD_DES.

                  問題:

                  '$2a$' 字符串后面的這三個字符的意義是什么,正如我在手冊中所相信的那樣,指示 crypt 函數使用河豚方法.

                  根據手冊,'$2a$'應該足以指示crypt()使用blowfish方法;那么,以下三個字符的意義是什么?那么,如果這三個字符如此重要,那么鹽的正確格式是什么?

                  解決方案

                  2a 后面的數字指定了要執行的輪數的 log2.例如,10 表示做 1024 輪.通常,10 是正常的.不要使用太大的數字,否則您的密碼將需要很長時間才能驗證.

                  參見 為什么 BCrypt.net GenerateSalt(31) 立即返回? 相關的東西.:-)

                  I have read the information provided on the PHP Manual Entry for crypt(), but I find myself still unsure of the format for a salt to trigger the Blowfish algorithm.

                  According manual entry, I should use '$2$' or '$2a$' as the start of a 16 character string. However, in the example given later, they use a much longer string: '$2a$07$usesomesillystringforsalt$', which indicates to me that whatever string I provide will be sliced and diced to fit the model.

                  The problem I am encountering is actually triggering the Blowfish algo vs STD_DES. Example:

                  $foo = 'foo';
                  $salt = '$2a$' . hash('whirlpool', $foo); // 128 characters, will be truncated
                  $hash = crypt($foo, $salt); 
                  // $hash = $26HdMTpoODt6
                  

                  That hash is obviously not whirlpool, and is in fact STD_DES with only the first two characters of the salt being used for the salt. However, in the PHP Manual's example, their salt starts with '$2a$07$', so if I add those three characters to the same code I get the following:

                  $foo = 'foo';
                  $salt = '$2a$' . hash('whirlpool', $foo); // 128 characters, will be truncated
                  $hash = crypt($foo, $salt); 
                  // $hash = $2a$07$b1b2ee48991281a439da2OHi1vZF8Z2zIA.8njYZKR.9iBehxLoIC
                  

                  I've noticed I can provide some variance in the characters which are here shown as '07$', for example 04$ and 15$ both work, but 01$ through 03$ don't work (generates a blank string), and values such as 99$ and 85$ cause it to revert to STD_DES again.

                  The Question:

                  What is the significance of those three characters following the '$2a$' string which, as I am lead to believe by the manual, instruct the crypt function to use the blowfish method.

                  According to the manual, '$2a$' should be enough to instruct crypt() to use the blowfish method; what, then, is the significance of the following three characters? What then, is the correct format for a salt, if these three characters are so significant?

                  解決方案

                  The number following the 2a specifies the log2 of the number of rounds to perform. For example, 10 means do 1024 rounds. Usually, 10 is normal. Don't use numbers that are too big, or your password will take forever to verify.

                  See Why does BCrypt.net GenerateSalt(31) return straight away? for something related. :-)

                  這篇關于使用 PHP 的 crypt 的河豚鹽的正確格式是什么?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

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

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

                  • <tfoot id='axHs2'></tfoot>
                      <i id='axHs2'><tr id='axHs2'><dt id='axHs2'><q id='axHs2'><span id='axHs2'><b id='axHs2'><form id='axHs2'><ins id='axHs2'></ins><ul id='axHs2'></ul><sub id='axHs2'></sub></form><legend id='axHs2'></legend><bdo id='axHs2'><pre id='axHs2'><center id='axHs2'></center></pre></bdo></b><th id='axHs2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='axHs2'><tfoot id='axHs2'></tfoot><dl id='axHs2'><fieldset id='axHs2'></fieldset></dl></div>

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

                            <bdo id='axHs2'></bdo><ul id='axHs2'></ul>
                            主站蜘蛛池模板: 午夜欧美a级理论片915影院 | 免费看大片bbbb欧美 | 日韩午夜精品 | caoporn免费 | 伦理一区二区 | 国产999精品久久久 午夜天堂精品久久久久 | 国产成人精品av | 欧美一区不卡 | 激情 婷婷| 欧美一区二区在线 | 激情a| 日本午夜视频 | 欧美日韩一区在线观看 | 久久小视频 | 亚洲一区二区精品视频在线观看 | 色婷婷精品国产一区二区三区 | 欧美成人免费在线视频 | 欧美中文字幕一区二区 | 黑人精品xxx一区一二区 | 九九久久久| 国产免费av在线 | 国产精品永久免费视频 | 精品国产伦一区二区三区观看方式 | 日韩图区 | 亚洲视频二区 | 亚洲精品电影网在线观看 | 国产精品伦理一区二区三区 | 91精品国产综合久久婷婷香蕉 | 一级黄色裸片 | 亚洲精品美女在线观看 | a在线视频| 久久久久黄色 | 久久久久亚洲精品 | 激情的网站 | 国产精品一区久久久 | 91私密视频 | 久草热在线 | 国产成人99久久亚洲综合精品 | 国产精品a久久久久 | 欧美 中文字幕 | 中文字幕乱码视频32 |