Comments (1)
There was a proposal for a crypt scheme here - https://gitorious.org/scrypt/scrypt-unix-crypt. It appears to be unavailable at the moment though.
Summary though is:
7 MCF:
The scrypt method requires three parameters in the SALT value: N, r, p, which are expressed like this:
Nrrrrrppppp
Where
N
,r
andp
and encoded using crypt(3)'s traditional base-64 alphabet [./0-9A-Za-z].
N
is specified as base-2 logarithm of scrypt's actual N value.r
andp
are up to 30 bits, thus they only need 5 base-64 digits each. They are encoded in little-endian form (the first base-64 digit is the least significant).
The PWD part is the password hash string base-64 encoded (again using crypt(3)'s traditional alphabet).
The encoded form for the default "pleaseletmein" with the salt "SodiumChloride" with N
= 16384, r
= 8, p
= 1 is $7$C6..../....SodiumChloride$kBGj9fHznVYFQMEn/qDCfrDevf9YDtcDdKvEqHJLV8D
Last I checked though, it had not been accepted by the crypt team.
I never got around to implementing this digest format in this plugin, but have done it else where. The demo code provided doesn't include a prefix, but it would be easy enough to add one.
from php-scrypt.
Related Issues (20)
- Empty key length does not return any errors - just a blank hash.
- Segfault in php-scrypt/crypto/crypto_scrypt-sse.c:337 HOT 2
- Compilation error with GCC 4.9 - inlining fail HOT 2
- Default hash length is twice what it needs to be HOT 12
- Compilation failure, CPU without SSE2 support. HOT 5
- PHP 7 Support HOT 22
- manual install (windows) HOT 1
- Weak CSPRNG for the salt in some situations. HOT 9
- 1.4: failed test
- Show salt in hex instead of binary HOT 3
- Add needsRehash function HOT 3
- 算法结果去期望值不相同 HOT 1
- PHP package cannot be found after php extension installation
- can't install php-scrypt
- scrypt hash looks different in PHP72 and PHP74 HOT 1
- [bug] Salt param is being ignored in Windows
- Replacement in Sodium? HOT 1
- Please release fix for PHP 8.0 HOT 5
- Attempting to compile with SSE support on non-supported archetectures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-scrypt.