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

什么是最佳 scrypt 工作因素?

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

問題描述

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

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,但我不知道這是強還是弱還是什么.

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(敏感存儲).

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

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:一般工作因子,迭代次數.
  • r:用于底層哈希的塊大??;微調相對內存成本.
  • p:并行化因子;微調相對 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 速度、內存大小和帶寬未按預期增加的潛在問題.如果 CPU 性能提高得更快,則增加 p,如果內存技術的突破提供一個數量級的改進,則增加 r.N 可以跟上每某些時間跨度的一般性能翻倍.

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.

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

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

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

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

相關文檔推薦

Java Remove Duplicates from an Array?(Java從數組中刪除重復項?)
How to fix Invocation failed Unexpected Response from Server: Unauthorized in Android studio(如何修復調用失敗來自服務器的意外響應:在 Android 工作室中未經授權)
AES encryption, got extra trash characters in decrypted file(AES 加密,解密文件中有多余的垃圾字符)
AES Error: Given final block not properly padded(AES 錯誤:給定的最終塊未正確填充)
Detecting incorrect key using AES/GCM in JAVA(在 JAVA 中使用 AES/GCM 檢測不正確的密鑰)
AES-256-CBC in Java(Java 中的 AES-256-CBC)
主站蜘蛛池模板: 日韩欧美中文 | 91久久精品国产91久久 | av在线三级| 操网站 | 欧美一区二区三区日韩 | 中文字幕在线电影观看 | 蜜桃视频在线观看www社区 | 亚洲精品国产偷自在线观看 | 欧美日韩一区精品 | 尹人av| 99国产精品99久久久久久粉嫩 | 91超碰在线观看 | 天天插天天射天天干 | 国产欧美精品区一区二区三区 | 不卡视频一区 | 亚洲日日操 | 中文字幕在线观 | 欧美激情综合网 | 日日干天天操 | 综合九九| 91最新入口 | 美女黄网站视频免费 | 国产农村妇女精品一区 | 综合久久99 | 久久久视频在线 | 国产福利在线 | 久久新| 欧美精品一区二区三区视频 | 亚洲精品在线视频 | 玖玖视频 | www.亚洲| 国产精品一区二区av | 国产一区免费 | 亚洲精品国产第一综合99久久 | 99精品一区二区三区 | 国产精品永久免费观看 | 婷婷综合五月天 | 999久久久久久久久6666 | 国产精品99久久久久久宅男 | av片在线观看网站 | 亚洲一区二区精品视频 |