<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Scrypt</id>
	<title>Scrypt - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Scrypt"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Scrypt&amp;action=history"/>
	<updated>2026-06-29T16:18:09Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Scrypt&amp;diff=2986320&amp;oldid=prev</id>
		<title>imported&gt;Zestbot：​/* 概觀 */ bot:替換lang-x模板為langx</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Scrypt&amp;diff=2986320&amp;oldid=prev"/>
		<updated>2025-12-04T16:35:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;概觀：​&lt;/span&gt; bot:&lt;a href=&quot;/index.php?title=User:Zestbot/Bot17&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:Zestbot/Bot17（页面不存在）&quot;&gt;替換lang-x模板為langx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Lowercase}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;scrypt&amp;#039;&amp;#039;&amp;#039;（唸作「ess crypt」&amp;lt;ref&amp;gt;{{Cite web|url=https://twitter.com/cperciva/status/734613598383841281|title=Colin Percival on Twitter: &amp;quot;For the record, &amp;quot;scrypt&amp;quot; is pronounced &amp;quot;ess crypt&amp;quot;.  Like bcrypt, except with an S instead of the B.  It is NOT pronounced &amp;quot;script&amp;quot;.&amp;quot;|accessdate=2017-12-13|date=2016-05-23|author=Colin Percival|archive-date=2019-02-17|archive-url=https://web.archive.org/web/20190217215034/https://twitter.com/cperciva/status/734613598383841281|dead-url=no}}&amp;lt;/ref&amp;gt;），是加拿大計算機科學家暨計算機安全研究人員{{le|科林·珀西瓦爾|Colin Percival}}（{{lang|en|Colin Percival}}）於2009年所發明的[[密钥派生函数]]，當初設計用在他所創立的{{link-en|Tarsnap}}服務上&amp;lt;ref&amp;gt;{{Cite web|url=https://www.tarsnap.com/scrypt.html|title=Tarsnap - The scrypt key derivation function and encryption utility|accessdate=2017-12-13|author=Colin Percival|archive-date=2017-12-15|archive-url=https://web.archive.org/web/20171215155135/http://www.tarsnap.com/scrypt.html|dead-url=no}}&amp;lt;/ref&amp;gt;。設計時考慮到大規模的{{le|客製硬體攻擊|custom hardware attack}}而刻意設計需要大量記憶體運算。2016年，scrypt演算法發佈在{{IETF RFC|7914}}。scrypt的簡化版被用在數個[[密碼貨幣]]的[[工作量證明]]（{{lang|en|Proof-of-Work}}）上。&lt;br /&gt;
&lt;br /&gt;
== 概觀 ==&lt;br /&gt;
scrypt需要使用大量記憶體的原因來自於產生大量[[伪随机性]]（{{langx|en|pseudorandom}}）資料作為演算法計算的基礎。一旦這些資料被產生後，演算法將會以伪随机性的順序讀取這些資料產生結果。因此最直接的實做方式將會需要大量記憶體將這些資料儲存在記憶體內供演算法計算。&lt;br /&gt;
&lt;br /&gt;
另外一方面，由於伪随机性資料是透過演算法產生，在實做上也可以在需要存取時再計算以降低記憶體使用量。但由於計算成本很高，這個實做方法將大幅降低演算法的速度。&lt;br /&gt;
&lt;br /&gt;
這就是scrypt設計時考慮到的[[时空权衡]]，攻擊者可以使用後者的方法但計算速度很慢，或是用前者的方法但因記憶體成本而難以大規模平行化。&lt;br /&gt;
&lt;br /&gt;
== 密碼貨幣上的使用 ==&lt;br /&gt;
scrypt被用在數個密碼貨幣的工作量證明演算法上。首先被{{le|Tenebrix}}所使用（2011年九月)，而後被[[莱特币]]（{{lang|en|Litecoin}}）與[[多吉币]]（{{lang|en|Dogecoin}}）所採用。因[[GPU]]在計算使用scrypt的密碼貨幣較[[CPU]]有效率，這導致了高階顯示卡在2013年年底的短缺&amp;lt;ref&amp;gt;{{Cite news|url=http://www.extremetech.com/computing/172381-massive-surge-in-litecoin-mining-leads-to-radeon-shortage|title=Massive surge in Litecoin mining leads to graphics card shortage|accessdate=2017-12-13|date=2013-12-10|work=ExtremeTech|author=Joel Hruska|language=en|archive-date=2017-12-12|archive-url=https://web.archive.org/web/20171212093559/http://www.extremetech.com/computing/172381-massive-surge-in-litecoin-mining-leads-to-radeon-shortage|dead-url=no}}&amp;lt;/ref&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
在2014年開始，市場上已經有使用[[特殊應用積體電路|ASIC]]計算scrypt演算法的挖礦機&amp;lt;ref&amp;gt;{{Cite news|url=https://www.cryptocoinsnews.com/zeusminer-delivers-lightning-thunder-cyclone-scrypt-asics-litecoin-dogecoin-mining/|title=Zeusminer Delivers Lightning, Thunder, and Cyclone Scrypt ASICs For Litecoin And Dogecoin Mining|accessdate=2017-12-13|date=2014-05-21|work=CryptoCoinsNews|author=Caleb Chen|language=en|archive-url=https://web.archive.org/web/20170818220311/https://www.cryptocoinsnews.com/zeusminer-delivers-lightning-thunder-cyclone-scrypt-asics-litecoin-dogecoin-mining/|archive-date=2017-08-18|dead-url=yes}}&amp;lt;/ref&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
== 相關連結 ==&lt;br /&gt;
* [[bcrypt]]&lt;br /&gt;
&lt;br /&gt;
== 註解 ==&lt;br /&gt;
{{Reflist|2}}&lt;br /&gt;
&lt;br /&gt;
== 外部連結 ==&lt;br /&gt;
* [https://www.tarsnap.com/scrypt.html Tarsnap - The scrypt key derivation function and encryption utility]{{Wayback|url=https://www.tarsnap.com/scrypt.html |date=20171215155135 }} {{en}}&lt;br /&gt;
* [https://www.tarsnap.com/scrypt/scrypt.pdf STRONGER KEY DERIVATION VIA SEQUENTIAL MEMORY-HARD FUNCTIONS]{{Wayback|url=https://www.tarsnap.com/scrypt/scrypt.pdf |date=20171215105334 }} {{en}}&lt;br /&gt;
* {{IETF RFC|7914}} {{en}}&lt;br /&gt;
&lt;br /&gt;
{{密碼學|hash}}&lt;br /&gt;
&lt;br /&gt;
[[Category:密码散列函数]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Zestbot</name></author>
	</entry>
</feed>