scrypt

Usage of Firebase SCrypt params in nodejs scrypt package

痴心易碎 提交于 2021-01-27 11:23:25
问题 I've been struggling with this for some time now, hopefully someone has done this before and can help me on my way. I went to the Firebase people to request the scrypt params in order to migrate our user authentication away from Firebase to our own server. Now I got those params, but I have no clue as how they should map towards the node scrypt package (https://www.npmjs.com/package/scrypt). The Firebase params are of the following format: hash_config: { algorithm: SCRYPT, base64_signer_key:

Scrypt hash algorithm for password hashing in Swift 3.0 (iOS)

Deadly 提交于 2019-12-21 22:16:18
问题 I am trying to find a library to implement password hashing(with salt) using Scrypt algorithm. My question is similar to one already asked in stackoverflow (Hash password in Swift application) I have found following two libraries in swift and objective c respectively but the hash string generated from these is not matching with the one generated at server. Swift-Sodium (https://github.com/jedisct1/swift-sodium) NAChloride (https://github.com/gabriel/NAChloride) Can someone please help in

Hash password in Swift application

心已入冬 提交于 2019-12-21 06:19:41
问题 For security purposes I will encrypt some data, including the user password in my application. My colleagues have chosen scrypt hashing algorithm, for a 64 bytes length, with a fixed seed, then converted to hex. Hashing " A12345678Z " leads to: 25fac84a1cc3a8f6706848d1016cfe7e9d3631691306dcacae68c11c7b54f0bf89e7a7fc51f7fcc19671775acb21c8d928c4c96bb66d915925de58b8b36ab251 Seed is “ HeanpyftAkWilfUd ”. On server, they are using this implementation : https://github.com/ricmoo/pyscrypt Example:

Why Are node scrypt Hashes the Same Given the Same Inputs?

半世苍凉 提交于 2019-12-13 05:09:57
问题 I was trying to find a compare or verify function for node's built-in crypto module, specifically for scrypt, as most password-hashing modules I have used have such a function. Then, I discovered why this was an impossible task: All hashes generated with these algorithms using the same parameters generate the same string (technically buffer). This is the case for many of crypto 's hashing functions, including its pbkdf2 implementation. Why is this safe? Isn't the whole (modern) point of a

Python-Scrypt doesn't install on Windows 7 64-bit

回眸只為那壹抹淺笑 提交于 2019-12-13 03:58:21
问题 It seems that Scrypt doesn't install on my machine. I've installed the version for Windows here. I used Visual Studio free edition, installed OpenSSL 32-bit, and compiled BCrypt with success; but SCrypt returns this error: > setup.py install running install running build running build_ext building 'scrypt' extension C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DHAVE_CONFIG_H -Iscrypt-1.1.6 -Iscrypt-1.1.6/lib -Iscrypt-1.1.6/lib

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

痴心易碎 提交于 2019-12-12 08:54:47
问题 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) when they login and deactivate old users after a certain period of time so they have to use the password recovery feature which would automatically update their hash. Another option that would allow me to instantly upgrade everyone would be to take

“error MSB8020: The build tools for v141 (Platform Toolset = 'v141') cannot be found” when trying to install npm module scrypt

杀马特。学长 韩版系。学妹 提交于 2019-12-08 13:11:24
问题 I´m trying to install the npm module scrypt. I know scrypt requires node-gyp, i installed it globally (several times). Also I know node-gyp requires python 2.7 and MS Build Tools. I installed the latest python 2.7 build and i installed MS Build Tools. I also tried with VS Community Edition 2017. I tried to repair and reinstall both. I also installed npm package windows-build-tools (several times) globally successful. But wenn i try npm i scrypt i got the following errors: C:\Program Files

What's the is maximum length of scrypt output?

百般思念 提交于 2019-12-05 18:14:37
问题 I'd like to store an scrypt-hashed password in a database. What is the maximum length I can expect? 回答1: According to https://github.com/wg/scrypt the output format is $s0$params$salt$key where: s0 denotes version 0 of the format, with 128-bit salt and 256-bit derived key. params is a 32-bit hex integer containing log2(N) (16 bits), r (8 bits), and p (8 bits). salt is the base64-encoded salt. key is the base64-encoded derived key. According to https://stackoverflow.com/a/13378842/14731 the

sCrypt implementation in JavaScript? [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-05 15:48:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 months ago . 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? 回答1: The answer linked above points to a project that no longer exists. This project, however, is still

Example code for Scrypt and Cryptsharp

纵然是瞬间 提交于 2019-12-04 20:44:23
问题 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? 回答1: It's only a single call so I'll walk you through the parameters: key : this is your password, use UTF-8 encoding (without byte order mark) to encode your password into a byte array; salt : a string of secure random bytes stored with the result of the scrypt function, 16 bytes should be ample; cost :