久久久久久久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>
                            主站蜘蛛池模板: 欧美成人一区二区 | 国产在线播放av | 国产成人在线观看免费网站 | 欧美日韩免费在线 | av激情小说 | 国产黄a三级三级三级看三级男男 | 国产日韩欧美亚洲 | 91女人18毛片水多国产 | 欧美三级又粗又硬 | 亚洲国产一区二区三区 | 精品国产一区二区三 | 精品亚洲一区二区三区 | 色天天综合 | 伊人久久在线 | 久久久一本| 四虎8848精品成人免费网站 | 欧美黄色一级 | 亚洲精品一区二区三 | 亚洲小说欧美激情另类 | 久久中文字幕视频 | 国产激情在线视频 | 丁香在线视频 | 精品日韩在线观看 | 久久麻豆视频 | 手机看片日韩 | 国产乱淫av | 91视频色 | 一级黄色录像片 | 深夜福利网 | a一级黄色片 | 一级片免费在线观看 | 伊人2222| 亚洲午夜视频在线观看 | 亚洲欧美中文字幕 | 成人久久av| 成人在线精品 | 狠狠干狠狠插 | 精品欧美一区二区三区久久久 | 91av免费观看| 国产一区二区中文字幕 | 国产视频导航 |