Comments (3)
Oops, here is a stacktrace.
> crystal test.cr
Index out of bounds (IndexError)
from /usr/local/Cellar/crystal-lang/0.24.1_1/src/slice.cr:0:7 in '[]='
from lib/scrypt/src/engine.cr:35:9 in 'crypto_scrypt'
from test.cr:11:1 in '__crystal_main'
from /usr/local/Cellar/crystal-lang/0.24.1_1/src/crystal/main.cr:11:3 in '_crystal_main'
from /usr/local/Cellar/crystal-lang/0.24.1_1/src/crystal/main.cr:112:5 in 'main_user_code'
from /usr/local/Cellar/crystal-lang/0.24.1_1/src/crystal/main.cr:101:7 in 'main'
from /usr/local/Cellar/crystal-lang/0.24.1_1/src/crystal/main.cr:135:3 in 'main'
from scrypt-crystal.
Yes, don't use Scrypt::Engine
directly; use Scrypt::Password
instead.
crypto_scrypt
expects the salt to be an hexadecimal string representation, for example "0123456789ABCDEF", where each byte must be a pair of 0-F characters, as it appears in the hashed representation of a scrypt password.
from scrypt-crystal.
Got it! Thanks!!
from scrypt-crystal.
Related Issues (5)
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 scrypt-crystal.