RUVIDEO
Поделитесь видео 🙏

Unix & Linux: How to create SHA512 password hashes on command line? (10 Solutions!!) смотреть онлайн

Unix & Linux: How to create SHA512 password hashes on command line?


The Question: In Linux I can create a SHA1 password hash using sha1pass mypassword. Is there
a similar command line tool which lets me create sha512 hashes? Same question
for Bcrypt and PBKDF2.

Solutions: Please watch the whole video to see all solutions, in order of how many people found them helpful

== This solution helped 61 people ==
Yes, you're looking for mkpasswd, which (at least on Debian) is part of the
whois package. Don't ask why...
anthony@Zia:~$ mkpasswd -m help
Available methods:
des standard 56 bit DES-based crypt(3)
md5 MD5
sha-256 SHA-256
sha-512 SHA-512
Unfortunately, my version at least doesn't do bcrypt. If your C library does,
it should (and the manpage gives a -R option to set the strength). -R also
works on sha-512, but I'm not sure if its PBKDF-2 or not.
If you need to generate bcrypt passwords, you can do it fairly simply with the
Crypt::Eksblowfish::Bcrypt Perl module.

== This solution helped 78 people ==
On any of the Red Hat distros such as Fedora, CentOS, or RHEL the command
mkpasswd doesn't include the same set of switches as the version typically
included with Debian/Ubuntu.
NOTE: The command mkpasswd is actually part of the expect package, and should
probably be avoided. You can find out what package it belongs to with either of
these commands.
$ yum whatprovides "*/mkpasswd"
-or-
$ repoquery -q --file */mkpasswd
**** Example ****
$ repoquery -q --file */mkpasswd
expect-0:5.43.0-8.el5.x86_64
expect-0:5.43.0-8.el5.i386
Both of these methods are superior to using rpm since the packages do not have
to be installed to locate */mkpasswd.
**** Workarounds ****
To work around this you can use the following Python or Perl one-liners to
generate SHA-512 passwords. Take note that these are salted:
**** Python (>= 3.3) ****
$ python -c 'import crypt,getpass; print(crypt.crypt(getpass.getpass(),
crypt.mksalt(crypt.METHOD_SHA512)))'
-or scripted-
$ python -c 'import crypt; print(crypt.crypt("somesecret", crypt.mksalt
(crypt.METHOD_SHA512)))'
**** Python (2.x or 3.x) ****
$ python -c "import crypt, getpass, pwd; print(crypt.crypt
('password', '$6$saltsalt$'))"

$6$saltsalt$qFmFH.bQmmtXzyBY0s9v7Oicd2z4XSIecDzlB5KiA2/
jctKu9YterLp8wwnSq.qc.eoxqOmSuNp2xS0ktL3nh/
Note: $6$ designates sha512. Support for this method of specifying the
algorithm is dependent on support in OS level crypt(3) library function
(usually in libcrypt). It is not dependent on python version.
**** Perl ****
$ perl -e 'print crypt("password","$6$saltsalt$") . "n"'
$6$saltsalt$qFmFH.bQmmtXzyBY0s9v7Oicd2z4XSIecDzlB5KiA2/
jctKu9YterLp8wwnSq.qc.eoxqOmSuNp2xS0ktL3nh/
In these examples the password is the string "password" and the salt is
"saltsalt". Both examples are using $6$ which denotes that you want crypt to
use SHA-512.

== This solution helped 12 people ==
Run this command:
$ /sbin/grub-crypt --sha-512
then enter the word you want hashed.

With thanks & praise to God, and with thanks to the many people who have made this project possible! | Content (except music & images) licensed under cc by-sa 3.0 | Music: https://www.bensound.com/royalty-free-music | Images: https://stocksnap.io/license & others | With thanks to user user208145 (https://unix.stackexchange.com/users/38537), user ucemike (https://unix.stackexchange.com/users/67267), user TMT (https://unix.stackexchange.com/users/369561), user student (https://unix.stackexchange.com/users/5289), user slm (https://unix.stackexchange.com/users/7453), user obohovyk (https://unix.stackexchange.com/users/64125), user Markus Linnala (https://unix.stackexchange.com/users/177650), user MadMike (https://unix.stackexchange.com/users/49165), user levi (https://unix.stackexchange.com/users/259638), user Krzysztofa Krzysztof (https://unix.stackexchange.com/users/365185), user Juan (https://unix.stackexchange.com/users/100450), user Dimitrios Mistriotis (https://unix.stackexchange.com/users/8422), user derobert (https://unix.stackexchange.com/users/977), and the Stack Exchange Network (http://unix.stackexchange.com/questions/52108). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything is amiss at Roel D.OT VandePaar A.T gmail.com.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Unix & Linux: How to create SHA512 password hashes on command line? (10 Solutions!!)» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.