jhefreyzz
How do I compile and use argon2 in Phoenix app
Hi,
I’m really stuck for long hours just to install argon2 in my Phoenix app and can’t figure out what should I do to make it work.
Here’s what I tried to far.
Since I installed build tools from Visual Studio 2019 Preview installer I run this command.
cmd /K "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat" amd64
Then the result is
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.5.0-pre.1.0
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
C:\Windows\System32>cd \Users\Utsuro\Desktop\demoauth
C:\Users\Utsuro\Desktop\demoauth>mix compile
==> argon2_elixir
Microsoft (R) Program Maintenance Utility Version 14.24.28314.0
Copyright (C) Microsoft Corporation. All rights reserved.
'where' is not recognized as an internal or external command,
operable program or batch file.
del /Q /F priv
Could Not Find c:\Users\Utsuro\Desktop\demoauth\deps\argon2_elixir\priv
nmake / /F Makefile.win priv\argon2_nif.dll
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\nmake.EXE"' : return code '0x2'
Since its not working I try the suggestion in Comeonin and install VisualCppBuildTools. but running choco install VisualCppBuildTools then executing a cmd command
cmd /K "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 but the result is still the same
C:\Users\Utsuro\Desktop\demoauth>mix compile
==> argon2_elixir
Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.
where' is not recognized as an internal or external command,
operable program or batch file.
del /Q /F priv
Could Not Find c:\Users\Utsuro\Desktop\demoauth\deps\argon2_elixir\priv
nmake / /F Makefile.win priv\argon2_nif.dll
I’m really stuck and I really need to work this out.
I’m using Windows 10 Home SL Version 1903
Most Liked
sfusato
I remember having this issue when I was using a Windows machine. My “solution” at the time involved using Pbkdf2 instead of Argon2: GitHub - riverrun/comeonin: Password hashing specification for the Elixir programming language · GitHub
bottlenecked
Another possible “solution” in the same vein would be to build using WSL. I know I’ve often resorted to such “solutions” when library authors didn’t have windows machines on hand for testing ![]()
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









