Mkpwd does not compile (password generator)

An update to AUR package mkpwd is failing due to the download failing…
https://www.o-schroeder.de/download/mkpwd/mkpwd-1.6.tar.gz

This has been a couple of days now. Does anyone know if this is tempoary or should I look for an alternative?

Try changing servers

Try changing servers

I cannot find a way to do that in pamac.

I should have mentioned, I already tried downloading by web browser, also tried just the domain. but got “unable to find server”.

Pamac > Preferences > General tab

Can’t post photos, otherwise mods will skin me alive :expressionless_face:

Brilliant! Thanks. Chose US instead of UK and all ok. :slight_smile:

Just out of curiosity, why would one need something like that package?

Generating a password is something like, e.g. KeePassXC does already and, I’m sure, many other password handlers as well, that don’t exist in the AUR.

There is also Python that can be used to produce pseudo random strings of characters of any length:

>>> pwdlist = []
>>> for n in range(1000):
...     pwdlist.append(''.join(random.choices(string.printable, k=25)))

One may want to exclude some of the more “exotic” printable characters, like \x0b and \x0c.

Also, don’t forget to mark the answer that solved it for you as the solution.

It looks like mkpwd was updated on the AUR only two days ago;

If you are having difficulty building a package via the AUR your first port of call for more information should generally be upstream:

https://www.o-schroeder.de/projects/mkpwd

As that site does not seem to be loading, my guess is that might have some bearing on your problem – try again later.


A reminder that the AUR is not officially supported by Manjaro or Arch Linux.

For the sake of alternative solutions not including the aur: pwgen in in the repos. And something like this will probably also do the job.

head -n 10 /dev/urandom | tr -cd "[:alnum:]_$%^@&#*!()" | cut -c '1-30'

edit: corrected mistake in the array

Additionally, the following is the last (and only) comment from the maintainer, seemingly in 12 years:

In view of the ongoing issues with AUR this year, I’d tend to treat this one with an element of caution; especially if a safer alternative exists.

That is the kind of red flag (new maintainer of an abandoned project) that would make me uninstall the package. Especially for such a function that is provided by many other packages. And even the kernel via urandom.

Maybe better this way:

password = (''.join(random.choices(string.printable[:-6], k=25)) for n in range(1000))

And get password suggestions with:

next(password)

The code also needs this before anything:

import random
import string

So, to summarize in one block:

import random
import string
password = (''.join(random.choices(string.printable[:-6], k=25)) for n in range(1000))
next(password)
next(password)
next(password)
...

All of which is more complicated than…
mkpwd -n16 -m16 -t1

“pwgen” from extra repository?

…really?
pwgen -s -N 3 -1 12
or
pwgen -s -c 12 -1 5

man pwgen is yor friend.

Why change something I find works well? I don’t want “easily memorable”, I want uncrackable.

pwgen -s 62 3 -y
( -s = strong, 62 characters, 3 passwords, -y = special characters )
Easy to guess! :slight_smile:

I think it is time to wrap it up. The initial problem was solved the way you wanted.
Also, at least 3 or 4 alternative solutions were posted, explained that aur is unsupported and the security aspect also mentioned. There is nothing more to be said, it is your decision at the end of the day. Closing before the real unproductive offtopic begins.

pwgen is available on every Linux distro.

on Manjaro

sudo pacman -S pwgen
pwgen --help
Usage: pwgen [ OPTIONS ] [ pw_length ] [ num_pw ]

Options supported by pwgen:
  -c or --capitalize
        Include at least one capital letter in the password
  -A or --no-capitalize
        Don't include capital letters in the password
  -n or --numerals
        Include at least one number in the password
  -0 or --no-numerals
        Don't include numbers in the password
  -y or --symbols
        Include at least one special symbol in the password
  -r <chars> or --remove-chars=<chars>
        Remove characters from the set of characters to generate passwords
  -s or --secure
        Generate completely random passwords
  -B or --ambiguous
        Don't include ambiguous characters in the password
  -h or --help
        Print a help message
  -H or --sha1=path/to/file[#seed]
        Use sha1 hash of given file as a (not so) random generator
  -C
        Print the generated passwords in columns
  -1
        Don't print the generated passwords in columns
  -v or --no-vowels
        Do not use any vowels so as to avoid accidental nasty words