Questions tagged [scrypt]

SCrypt is a key derivation function (KDF) based on the concept of sequential memory-hard functions mostly used for password hashing.

SCrypt is a key derivation function (KDF) based on the concept of sequential memory-hard functions mostly used for password hashing.

Resources

125 questions
70
votes
3 answers

What are optimal scrypt work factors?

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…
Michael Louis Thaler
  • 1,814
  • 2
  • 15
  • 19
55
votes
3 answers

.NET implementation of scrypt

I've read about scrypt and some of its advantages over the bcrypt hashing algorithm in certain circumstances. Anyhow, it seems scrypt isn't as widely used yet. Has anyone seen so far a .NET implementation of it (favored in C#)?
Martin Buberl
  • 42,048
  • 25
  • 96
  • 139
12
votes
3 answers

Bouncy Castle scrypt implementation

I'm currently implementing password hashing using scrypt. I have already found a nice scrypt implementation on GitHub. To my surprise I have also discovered a scrypt implementation in the Bouncy Castle library. The class is not documented, Wikipedia…
Marek Puchalski
  • 2,105
  • 1
  • 17
  • 27
10
votes
7 answers

sCrypt implementation in JavaScript?

Someone asked about a JavaScript implementation of bCrypt a while back and appears to have written their own code to handle the implementation. Does anyone have an implementation of sCrypt in JavaScript?
David Perry
  • 1,226
  • 4
  • 14
  • 30
10
votes
2 answers

What's the is maximum length of scrypt output?

I'd like to store an scrypt-hashed password in a database. What is the maximum length I can expect?
Gili
  • 76,473
  • 85
  • 341
  • 624
9
votes
3 answers

Converting WarpWallet's hashing algorithm from javascript into C#

I'm trying to implement the warpwallet code in C#. I'm using cryptsharp for its scrypt and PBKDF2 implementations. However, I seem to be getting different results than the real website. Here is my code: static void Main(string[] args) { string…
Aeon2058
  • 497
  • 5
  • 17
9
votes
2 answers

How to use scrypt to generate hash for password and salt in Python

I would like to use scrypt to create a hash for my users' passwords and salts. I have found two references, but there are things I don't understand about them. They use the scrypt encrypt and decrypt functions. One encrypts a random string and the…
Mitch
  • 2,078
  • 6
  • 27
  • 45
8
votes
1 answer

scrypt C library

I'm currently developing a C app in which I'll need to hash user's passwords. I know scrypt is currently one of the best methods to "hash" passwords (memory-bound, slow), but I can't seem to find a simple cross-platform C library that would do it…
Artefact2
  • 6,918
  • 3
  • 28
  • 38
8
votes
2 answers

Example code for Scrypt and Cryptsharp

I have searched all over Google and I can't find a code sample of Scrypt usage (for hashing a password) using the Cryptsharp library. Can you please provide a sample for hashing the password?
William Hurst
  • 2,141
  • 4
  • 31
  • 53
7
votes
2 answers

Can I improve the security of MD5 hashed passwords by salting the existing MD5 hash and hash the result using Scrypt or PBKDF2 HMACSHA256?

I have a database of legacy passwords that were salted and hashed using MD5. I would like to update the system so that the data is more secure. The first option is to transition the users to a new hashing scheme (Salt + Scrypt or PBKDF2 HMACSHA256)…
jpshook
  • 4,516
  • 6
  • 34
  • 44
5
votes
3 answers

npm unable to install scrypt. node-gyp rebuild

I want to run a blockchain application, but I got this error. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! scrypt@6.0.3 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the…
Frieda
  • 143
  • 1
  • 9
4
votes
0 answers

Scrypt Hashing algorithm behaves differently in PHP 7.2 and PHP 7.3

I am trying to upgrade the PHP version from 7.2.25 to 7.3.21 version, after upgrade of PHP to 7.3.21 and Scyprt DLL, Scyrpt hash algorithm stopped working, user is not able to login, when tried to get into the root cause found that in PHP 7.3.21…
J Cheema
  • 41
  • 2
4
votes
1 answer

NPM / Nodejs: Can't install scrypt@6.0.3

Actually I am trying to install express-basic-auth, but it fails due to the installation of scrypt@6.0.3. I already tried: sudo apt-get install build-essential and also tried deleting ~/.node-gyp as stated here:…
sunwarri0r
  • 3,061
  • 2
  • 33
  • 83
4
votes
2 answers

Python - Proper way to store passwords with scrypt?

Im failing to understand how should i store hashed passwords with scrypt. Here is the example: import pyscrypt hashed = pyscrypt.hash(password = b"password", salt = b"seasalt", N = 1024, …
RhymeGuy
  • 1,860
  • 3
  • 30
  • 54
4
votes
2 answers

Do scrypt implementations have a maximum length for input(password)?

Specifically this. I know most bcrypt implementations are around 50 characters for, but I'm pretty certain that's not the case with scrypt.
No_name
  • 2,401
  • 3
  • 27
  • 42
1
2 3
8 9