Skip to content

Instantly share code, notes, and snippets.

@KamilLelonek
Last active April 24, 2018 12:35
Show Gist options
  • Save KamilLelonek/4231105a33c105124d977377978ab92c to your computer and use it in GitHub Desktop.
Save KamilLelonek/4231105a33c105124d977377978ab92c to your computer and use it in GitHub Desktop.
def generate(mnemonic, passphrase \\ "") do
passphrase
|> salt()
|> initial_round(mnemonic)
|> pbkdf2(mnemonic)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment