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

141 questions
0
votes
1 answer

bcrypt in Go with KDF for specific output key-length

It seems like the Go ecosystem just has a basic bcrypt implementation (golang.org/x/crypto/bcrypt) and it's left as an exercise for the developer to extract the key from the encoded output string to then further expand it to satisfy a particular key…
Dustin Oprea
  • 9,673
  • 13
  • 65
  • 105
0
votes
1 answer

Asking for help to fix a php script error

i got this unexpected error after site builder set up. Since I'm not familiar with CSS or PHP scripts, I'm not able to see the error which should be on line 8 and line 19 (according to the 500 error code). There was no closing line (?>) at the end…
efemeris
  • 1
  • 1
0
votes
0 answers

asp.net mvc Comparing password using SCrypt

i'm using SCrypt installed it using nuget manager. then, at the top before every action: ScryptEncoder encoder = new ScryptEncoder(); register action: tblUser userItems = new tblUser(); string hashedPassword =…
silver01
  • 63
  • 2
  • 11
0
votes
1 answer

unable to import scrypt python 3.6 in Windows 10

I am having a problem with this import in Windows. Scrypt (version 0.8.6) was installed as part of the steem-python package using pip in a virtual environment. I am using Visual Studio 2017 Community (version 15.9.2) in Windows 10. When I try to…
Mustafamond77
  • 330
  • 2
  • 15
0
votes
2 answers

Firebase's scrypt version don't give the same hash as save

I'm here because I'm working on this repo. When i compare the hash from firebase and this hash i created using the utility created by firebase for the same password using the same salt and the same parameters, they are not the same. Is someone…
Xeewi
  • 39
  • 1
  • 7
0
votes
0 answers

How to check if two hashed string belong to same clear text password

Recently I am stuck in a problem related to password encoding/decoding and matching and updating the same in db, need your help guys. Problem goes like below - User comes to the portal creates the account for which data is stored in the db(for…
Arvind Kumar
  • 459
  • 5
  • 21
0
votes
1 answer

Why stepping over the SCrypt.generate() (Bouncy Castle Java API) line using breakpoint(Eclipse) blocks the debugging process?

I keep pressing F6 in eclipse during debugging public void method() { Line 54: --------My breakpoint is here------ Line 55: -------Some line of code----- Line 56: byte[] sCryptHash1 = SCrypt.generate(plaintextPassword.getBytes(), …
Rathan Naik
  • 993
  • 12
  • 25
0
votes
1 answer

How to convert Bouncy Castle SCrypt Byte array to String format or HexString format?

Bouncy Castle SCrypt Java API. byte[] sCryptHash = SCrypt.generate(plaintextPassword.getBytes(), salt.getBytes(), 16384, 8, 1, 1024); String str = sCryptHash.toString(); The above generate method gives byte[ ] format, I need to store it in database…
Rathan Naik
  • 993
  • 12
  • 25
0
votes
1 answer

SCrypt produces different result on x64 platform

I am using this library https://github.com/wg/scrypt in my android app. I can successfully compile it and bind the native implementation in my android app, but the scryptN function produces a different result if it is execute in a 32bit or 64bit…
Apperside
  • 3,542
  • 2
  • 38
  • 65
0
votes
1 answer

Can not import scrypt from hashlib

I try to use import scrypt from the standard libary. Both on my local machine (ubuntu 16.04) and the server (heroku/heroku stack) the import fails. Traceback (most recent call last): File "", line 1, in ImportError: cannot import…
user6216224
0
votes
1 answer

How i should set parameters of Scrypt hashing function so I can get a duration of hash processing about 250 ms?

I whant to hashing a password with SCrypto hashing function but if i will to use a default parameters i get hashing duration about 5-6 seconds. How i can set parameters so i get duration less then 1 second (better 250 ms) SCrypt.scrypt(pass, salt,…
Porty
  • 19
  • 6
0
votes
1 answer

Algorithm with Scrypt and PBKDF2 - Python

I have tried to reproduce this algorithm on Python (Double pipes mean to add 0x1 or 0x2 to the passphrase) s1 = scrypt(key=(passphrase||0x1), salt=(salt||0x1), N=2^18, r=8, p=1, dkLen=32) s2 = pbkdf2(key=(passphrase||0x2), salt=(salt||0x2), c=2^16,…
Simone Romani
  • 415
  • 2
  • 6
  • 20
0
votes
1 answer

Failed import lib Scrypt in Python

When I try to import the Scrypt lib from Python right after I'd instaled the package using pip the error message is: Traceback (most recent call last): File "", line 1, in File "C:\Python27\lib\site-packages\scrypt.py", line 11, in…
0
votes
1 answer

Converting C uint8_t to python utf_16_be

I am trying to port a python script that use scrypt to generate a password. import pylibscrypt scrypt = pylibscrypt.scrypt password = 'test123'.encode("utf_16_be", "replace") salt = '384eaed91035763e'.decode('hex') key = scrypt(password, salt,…
01BTC10
  • 506
  • 3
  • 9
  • 19
0
votes
1 answer

Scrypt fails at verifyKdf with just "Error"

I've setup Scrypt and hashing - the KDF - works fine. However, whenever I try to verifyKdf() I get an error. return scryptNative.verifySync(args[0], args[1]); ^ Error at Object.verifyKdfSync…
arc
  • 4,553
  • 5
  • 34
  • 43