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

什么是最佳 scrypt 工作因素?

What are optimal scrypt work factors?(什么是最佳 scrypt 工作因素?)
本文介紹了什么是最佳 scrypt 工作因素?的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

我正在使用 Java scrypt 庫 來存儲(chǔ)密碼.當(dāng)我加密事物時(shí),它需要一個(gè) Nrp 值,其文檔將其稱為CPU 成本"、內(nèi)存成本""和并行化成本"參數(shù).唯一的問題是,我實(shí)際上并不知道它們的具體含義,或者對它們有什么好的價(jià)值;也許它們以某種方式對應(yīng)于 Colin Percival 的原始應(yīng)用程序 上的 -t、-m 和 -M 開關(guān)?

I'm using a Java scrypt library for password storage. It calls for an N, r and p value when I encrypt things, which its documentation refers to as "CPU cost", "memory cost" and "parallelization cost" parameters. Only problem is, I don't actually know what they specifically mean, or what good values would be for them; perhaps they correspond somehow to the -t, -m and -M switches on Colin Percival's original app?

有人對此有什么建議嗎?庫本身列出了 N = 16384, r = 8 和 p = 1,但我不知道這是強(qiáng)還是弱還是什么.

Does anyone have any suggestions for this? The library itself lists N = 16384, r = 8 and p = 1, but I don't know if this is strong or weak or what.

推薦答案

作為開始:

cpercival 在 2009 年的幻燈片中提到 周圍的東西

cpercival mentioned in his slides from 2009 something around

  • (N = 2^14, r = 8, p = 1) 對于 <100 毫秒(交互式使用),并且
  • (N = 2^20, r = 8, p = 1) 對于 <5s(敏感存儲(chǔ)).

即使在今天(2012 年 9 月),這些值對于一般用途(某些 WebApp 的密碼數(shù)據(jù)庫)也足夠好.當(dāng)然,具體取決于應(yīng)用程序.

These values happen to be good enough for general use (password-db for some WebApp) even today (2012-09). Of course, specifics depend on the application.

此外,這些值(大部分)意味著:

Also, those values (mostly) mean:

  • N:一般工作因子,迭代次數(shù).
  • r:用于底層哈希的塊大小;微調(diào)相對內(nèi)存成本.
  • p:并行化因子;微調(diào)相對 CPU 成本.
  • N: General work factor, iteration count.
  • r: blocksize in use for underlying hash; fine-tunes the relative memory-cost.
  • p: parallelization factor; fine-tunes the relative cpu-cost.

rp 旨在解決 CPU 速度、內(nèi)存大小和帶寬未按預(yù)期增加的潛在問題.如果 CPU 性能提高得更快,則增加 p,如果內(nèi)存技術(shù)的突破提供一個(gè)數(shù)量級的改進(jìn),則增加 r.N 可以跟上每某些時(shí)間跨度的一般性能翻倍.

r and p are meant to accommodate for the potential issue that CPU speed and memory size and bandwidth do not increase as anticipated. Should CPU performance increase faster, you increase p, should instead a breakthrough in memory technology provide an order of magnitude improvement, you increase r. And N is there to keep up with the general doubling of performance per some timespan.

重要提示:所有值都會(huì)改變結(jié)果.(已更新:)這就是為什么所有 scrypt 參數(shù)都存儲(chǔ)在結(jié)果字符串中的原因.

Important: All values change the result. (Updated:) This is the reason why all scrypt parameters are stored in the result string.

這篇關(guān)于什么是最佳 scrypt 工作因素?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Java Remove Duplicates from an Array?(Java從數(shù)組中刪除重復(fù)項(xiàng)?)
How to fix Invocation failed Unexpected Response from Server: Unauthorized in Android studio(如何修復(fù)調(diào)用失敗來自服務(wù)器的意外響應(yīng):在 Android 工作室中未經(jīng)授權(quán))
AES encryption, got extra trash characters in decrypted file(AES 加密,解密文件中有多余的垃圾字符)
AES Error: Given final block not properly padded(AES 錯(cuò)誤:給定的最終塊未正確填充)
Detecting incorrect key using AES/GCM in JAVA(在 JAVA 中使用 AES/GCM 檢測不正確的密鑰)
AES-256-CBC in Java(Java 中的 AES-256-CBC)
主站蜘蛛池模板: 中文字幕国产 | 天天干天天干天天干 | 亚洲综合在线视频 | 欧美黄色三级视频 | 好吊妞这里只有精品 | 毛片www| 国产精品天堂 | 97在线免费视频 | 女同一区二区 | 色综合天天综合网国产成人网 | 亚洲精品中文字幕乱码三区91 | 在线小视频| 国产欧美在线 | 国产高潮在线 | 爱福利视频网 | 黄色免费网站在线观看 | 岛国一区二区三区 | 超碰在线免费 | 夜夜操网站 | 国产一级黄色 | 国产日韩免费 | 日韩av免费在线观看 | 国产精品亚洲综合 | 国产视频在线观看视频 | 久久视频免费在线观看 | 狠狠操综合 | 亚洲午夜久久久 | 又黄又爽又刺激的视频 | 国产一区二区在线免费 | 国产精品久久久久久久久久久久午夜片 | 日本精品视频在线观看 | 色噜噜狠狠一区二区三区 | 国产一区二区视频在线播放 | 日韩成人精品 | 一级黄色大片 | 日本免费毛片 | 一本色道久久综合亚洲精品小说 | 精品国产一区二区在线观看 | av免费网站 | 亚洲一区二区久久 | 久久久久久久成人 |