Scrypt
In cryptography, scrypt (pronounced "ess crypt" ) is a password-based key derivation function created by Colin Percival in March 2009, originally for the Tarsnap online backup service. The algorithm was specifically designed to make it costly to perform large-scale custom hardware attacks by requiring large amounts of memory. In 2016, the scrypt algorithm was published by IETF as RFC 7914. A simplified version of scrypt is used as a proof-of-work scheme by a number of cryptocurrencies, first implemented by an anonymous programmer called ArtForz in Tenebrix and followed by Fairbrix and Litecoin soon after.
In cryptography, scrypt (pronounced "ess crypt" ) is a password-based key derivation function created by Colin Percival in March 2009, originally for the Tarsnap online backup service. The algorithm was specifically designed to make it costly to perform large-scale custom hardware attacks by requiring large amounts of memory. In 2016, the scrypt algorithm was published by IETF as RFC 7914. A simplified version of scrypt is used as a proof-of-work scheme by a number of cryptocurrencies, first implemented by an anonymous programmer called ArtForz in Tenebrix and followed by Fairbrix and Litecoin soon after. This notation is used by RFC 7914 for specifying a usage of PBKDF2 with c = 1. Function ROMix(Block, Iterations) Create Iterations copies of X X ← Block for i ← 0 to Iterations−1 do V i ← X X ← BlockMix(X) for i ← 0 to Iterations−1 do j ← Integerify(X) mod Iterations X ← BlockMix(X xor V j ) return X Where RFC 7914 defines as the result of interpreting the last 64 bytes of X as a little-endian integer A 1 . Since Iterations equals 2 to the power of N, only the first bytes among the last 64 bytes of X, interpreted as a little-endian integer A 2 , are actually needed to compute Integerify(X) mod Iterations = A 1 mod Iterations = A 2 mod Iterations . Function BlockMix(B): The block B is r 128-byte chunks (which is equivalent of 2r 64-byte chunks) r ← Length(B) / 128; Treat B as an array of 2r 64-byte chunks [B 0 ...B 2r-1 ] ← B X ← B 2r−1 for i ← 0 to 2r−1 do X ← Salsa20/8(X xor B i ) // Salsa20/8 hashes from 64-bytes to 64-bytes Y i ← X return ← Y 0 ∥Y 2 ∥...∥Y 2r−2 ∥ Y 1 ∥Y 3 ∥...∥Y 2r−1 Where Salsa20/8 is the 8-round version of Salsa20. ==See also== Argon2 – winner of the Password Hashing Competition in 2015 bcrypt – blowfish-based password-hashing function bcrypt – blowfish-based cross-platform file encryption utility developed in 2002 crypt – Unix C library function crypt – Unix utility ccrypt – utility Key derivation function Key stretching mcrypt – utility PBKDF2 – a widely used standard Password-Based Key Derivation Function 2 PufferFish – a cache-hard password hashing function based on improved bcrypt design Space–time tradeoff yescrypt – successor to scrypt
References
- ^ "Colin Percival" . Twitter . Archived from the original on 17 February 2019. Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ Joel Hruska (10 December 2013). "Massive surge in Litecoin mining leads to graphics card shortage" . ExtremeTech. Archived from the original on 12 December 2017 . Retrieved 1 January 2014 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ Shelley, Johnny; Stolarczyk, Philip. "Bcrypt – Blowfish File Encryption (homepage)" . Sourceforge . Archived from the original on 29 August 2015 . Retrieved 8 April 2024 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ "bcrypt APK for Android – free download on Droid Informer" . droidinformer.org . Archived from the original on 15 February 2020 . Retrieved 2 March 2022 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ "T2 package – trunk – bcrypt – A utility to encrypt files" . t2sde.org . Archived from the original on 28 October 2017 . Retrieved 2 March 2022 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ "Oracle® GoldenGate Licensing Information" . Oracle Help Center . Archived from the original on 6 March 2024 . Retrieved 8 April 2024 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ Percival, Colin; Josefsson, Simon (August 2016). "The scrypt Password-Based Key Derivation Function" . RFC Editor. Archived from the original on 13 December 2021 . Retrieved 13 December 2021 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ Alec Liu (29 November 2013). "Beyond Bitcoin: A Guide to the Most Promising Cryptocurrencies" . Archived from the original on 13 June 2018 . Retrieved 8 July 2017 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ Percival, Colin. "Stronger Key Derivation Via Sequential Memory-Hard Functions" (PDF) . Archived (PDF) from the original on 14 April 2019 . Retrieved 11 November 2022 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ Andreas M. Antonopoulos (3 December 2014). Mastering Bitcoin: Unlocking Digital Cryptocurrencies . O'Reilly Media. pp. 221, 223. ISBN 9781491902646 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ "History of cryptocurrency" . litecoin.info wiki . 7 February 2014. Archived from the original on 11 June 2016 . Retrieved 27 June 2014 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ Roman Guelfi-Gibbs. Litecoin Scrypt Mining Configurations for Radeon 7950 . Amazon Digital Services. Archived from the original on 24 October 2016 . Retrieved 11 September 2017 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ a b "SCRYPT(1) General Commands Manual" . Debian Manpages . Archived from the original on 2 March 2022 . Retrieved 2 March 2022 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ a b "The scrypt key derivation function" . Tarsnap . Archived from the original on 28 May 2019 . Retrieved 21 January 2014 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
- ^ "Release 1.3.3" . 14 February 2025 . Retrieved 28 February 2025 . Wikipedia revision 1332071125, retrieved 2026-11-19 · 1795042800.0
Cite this
"Scrypt". 1767981545. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1332071125