jhefreyzz

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

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

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 :slight_smile:

Where Next?

Popular in Questions Top

9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
JDanielMartinez
Hi! May someone helps me, please! I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New

Other popular topics Top

9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
gausby
I asked this very same question on twitter and got some interesting feedback, but I thought it would be a good question to ask here as we...
1207 39467 209
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 127089 1222
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New

We're in Beta

About us Mission Statement