Elixir Plugin and password decryption

13 views
Skip to first unread message

Martin Stapleton

unread,
Apr 22, 2025, 9:44:21 AMApr 22
to vernemq-users
Hi,
I'm trying to update a plugin from vernemq 1.x for vernemq 2.x, and I can't seem to work out how to import the credentials_obfuscation application into the plugin.

  defp deps do
    [
      {:credentials_obfuscation, "~> 3.5"},...

...seems to work fine, but in the plugin module, 

require credentials_obfuscation

... gives me an error. It seems like the plugin for Elixir might actually be called CredentialsObfuscation, but I can't seem to compile referencing that either.

I'm sure I'm missing something obvious - can anyone help, or does anyone have a link to an example of an elixir password handler working with vernemq 2.x, please?

Kind regards,

Martin

Martin Stapleton

unread,
Apr 22, 2025, 12:39:21 PMApr 22
to vernemq-users
You can ignore this now - the answer is that the library is _already available_ in the elixir plugin : 
dpassword = :credentials_obfuscation.decrypt(password)
... does the trick.

Reply all
Reply to author
Forward
0 new messages