Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the meaning of it all... or, what exactly does __sc_crypt return? #68

Open
josh-m-sharpe opened this issue Apr 13, 2017 · 1 comment

Comments

@josh-m-sharpe
Copy link

josh-m-sharpe commented Apr 13, 2017

Hello there!

I'm trying to import scrypted passwords into google firebase. In order to do that, I need to pass them things defined here.

It looks like I need:

  • password hash
  • password salt
  • hash-key
  • rounds
  • mem-cost

It looks to me like some or all of that info might be what SCrypt::Password spits out, but I'm having a bit of a hard time following this

I'm guessing this token is just joined by '$' and each of these pieces is meaningful...? If so, could someone please clarify what each piece is and if they fit into those things I need above?

[1] pry(main)> output = SCrypt::Password.create("asdf")
=> "400$8$38$3cc27c1975484d03$27fb227b9c876a0aa3d14b2212ee400e9f38a3b631b65919c44df6140a8a3cf0"
[2] pry(main)> output.split('$')
=> ["400", "8", "38", "3cc27c1975484d03", "27fb227b9c876a0aa3d14b2212ee400e9f38a3b631b65919c44df6140a8a3cf0"]

Thank you!

@josh-m-sharpe
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant