Возможно вы искали: 'Sherlock Holmes: Consu...'

May 15 2025 19:07:54
  • Как сделать 8Gamers.Ru домашней страницей?
  • Игры
    • База данных по играх
    • Игровые новости
    • Игровая индустрия
    • Обзоры на игры
    • Прохождения игр
    • Гайды к играм
    • Превью о играх
    • Игровые тизеры
    • Игровые арты
    • Игровые обои
    • Игровые скриншоты
    • Игровые обложки
    • Игровые трейлеры
    • Игровое видео
    • Вышедшие игры
    • Ближайшие релизы игр
  • Кино и ТВ
    • База данных по кино
    • Статьи о кино
    • Постеры
    • Кадры из кино
    • Кино трейлеры
    • Сегодня в кино
    • Скоро в кино
  • Комиксы и манга
    • Манга по алфавиту
    • База данных по комиксах
    • Читать онлайн комиксы
    • Читать онлайн манга
    • База персонажей
  • Читы и коды
    • Чит-коды для PC игр
    • Чит-коды для консольных игр
    • Трейнеры
    • Коды Game Genie
  • Моддинг
    • Модификации
    • Карты к играм
    • Программы для моддинга
    • Статьи о моддинге
  • Геймдев
    • Всё о создании игр
    • Список движков
    • Утилиты в помощь игроделу
    • Конструкторы игр
    • Игровые движки
    • Библиотеки разработки
    • 3D-модели
    • Спрайты и тайлы
    • Музыка и звуки
    • Текстуры и фоны
  • Рецензии
    • Игры
    • Кино
    • Аниме
    • Комиксы
    • Мангу
    • Саундтреки
  • Саундтреки
    • Лирика
  • Файлы
    • Патчи к играм
    • Русификаторы к играм
    • Сохранения к играм
    • Субтитры к кино
  • Медиа
    • Видео
    • Фото
    • Аудио
    • Фан-арты
    • Косплей
    • Фото с виставок
    • Девушки из игр
    • Рисунки
    • Рисуем онлайн
    • Фотохостинг
  • Юмор
    • Анекдоты
    • Афоризмы
    • Истории
    • Стишки и эпиграммы
    • Тосты
    • Цитаты
  • Флеш
    • Азартные
    • Аркады
    • Бродилки
    • Гонки
    • Для девочек
    • Для мальчиков
    • Драки
    • Квесты
    • Леталки
    • Логические
    • Мультфильмы
    • Открытки
    • Приколы
    • Разное
    • Спорт
    • Стратегии
    • Стрелялки
Статистика

Статей: 87772
Просмотров: 96111483
Игры
Injustice:  Gods Among Us
Injustice: Gods Among Us
...
Dark Souls 2
Dark Souls 2
Dark Souls II - вторая часть самой хардкорной ролевой игры 2011-2012 года, с новым героем, сюжето...
Battlefield 4
Battlefield 4
Battlefield 4 - продолжение венценосного мультиплеер-ориентированного шутера от первого ли...
Кино
Steins;Gate
Steins;Gate
Любители японской анимации уже давно поняли ,что аниме сериалы могут дать порой гораздо больше пи...
Ку! Кин-дза-дза
Ку! Кин-дза-дза
Начинающий диджей Толик и всемирно известный виолончелист Владимир Чижов встречают на шумной моск...
Обзоры на игры
• Обзор Ibara [PCB/PS2] 18357
• Обзор The Walking ... 18801
• Обзор DMC: Devil M... 19879
• Обзор на игру Valk... 15877
• Обзор на игру Stars! 17764
• Обзор на Far Cry 3 17948
• Обзор на Resident ... 16024
• Обзор на Chivalry:... 17508
• Обзор на игру Kerb... 17981
• Обзор игры 007: Fr... 16619
Превью о играх
• Превью к игре Comp... 17960
• Превью о игре Mage... 14464
• Превью Incredible ... 14721
• Превью Firefall 13479
• Превью Dead Space 3 16334
• Превью о игре SimC... 14730
• Превью к игре Fuse 15442
• Превью Red Orche... 15542
• Превью Gothic 3 16343
• Превью Black & W... 17354
Главная » Статьи » Разное » [FreeBSD] Как выключить DES в паролях? (security des crypt)

[FreeBSD] Как выключить DES в паролях? (security des crypt)

Ключевые слова: security, des, crypt, (найти похожие документы)

_ RU.UNIX.BSD (2:5077/15.22) _____________________________________ RU.UNIX.BSD _
From : Max Khon 2:5000/79 09 Jul 99 18:29:00
Subj : [FreeBSD] Как выключить DES в паролях?
________________________________________________________________________________
hi, there!

06 Jul 99 21:36, Eugene Perevyazko wrote to All:

> Как можно заставить FreeBSD (3.2) сохранять новые пароли в MD5 при
> установленной поддержке DES? Везде описывается только обратная
> проблема...

----- FOO begins -----
From kkennawa@physics.adelaide.edu.au Fri Jul 9 18:31:14 1999
Date: Tue, 6 Jul 1999 22:30:21 +0930 (CST)
From: Kris Kennaway <kkennawa@physics.adelaide.edu.au>
To: security@FreeBSD.ORG
Subject: Improved libcrypt ready for testing

I've just finished polishing off a replacement crypt library, based on
some earlier work by Brandon Gillespie, which provides the following
features:

* Support for MD5, SHA-1, DES (two forms), and Blowfish password
(a la OpenBSD)

* Password crypt format defined by login capabilities

Two new login capabilities are added:

localcipher - which password hash algorithm do we use for this login
class?
localcipherrounds - how many encryption rounds should we use (for
algorithms which support it, namely New-DES and Blowfish).

The 'New-DES' algorithm has actually been present in the code forever, but
commented out. In contrast to the 'traditional' DES password format,
NewDES passwords have 4 bytes of encoded salt (instead of 2), with no
maximum password length (instead of an 8-character limit). It can also
accept a definable number of encryption rounds, so is somewhat
'future-proof'.

The SHA-1 algorithm is directly analogous to the FreeBSD-standard MD5
algorithm.

The Blowfish algorithm is ported from OpenBSD, and also supports a
customizable number of encryption rounds (from 2^4 up to 2^31).

Using login.conf, you could (for example) set your root password to be a
2^12 round Blowfish password (which takes ~35 seconds to crypt() on my
P120), your regular user passwords to be SHA-1, and a subset (say, users
who you want to share password entries with a Sun machine) as Old-DES
format.

I've changed the default password format (i.e., in the absence of an
overriding login class) to SHA-1 for new passwords; this is fairly
arbitrary but based on the general feeling that SHA-1 is a 'stronger'
algorithm than MD5.

In order to accomodate multiple algorithms better, the crypted passwords have
the format $token$hash$password where "token" is a string, not a numerical
identifier (i.e., '1' for current MD5 passwords, and "2a" for openbsd blowfish
passwords). Using a numeric identifier is non-portable across vendors without
an assigning authority, and there's the possibility of collision should
another vendor choose the same number as us for a different algorithm (of
course, they could still choose an incompatible algorithm using MD5, etc, but
this is less likely). (Cisco seem to use either our (old) MD5 algorithm for
their routers, or one with the same form)

The 'oldmd5' and 'openbsd' localcipher values will produce passwords in
the traditional format, and 'md5' and 'blowfish' produce the new
"$MD5"/"$Blowfish$" tokens. 'des', 'newdes', and 'sha1' are the other
possible values.

The source itself is split between the "exportable" ciphers and the
restricted ones under secure/ - in contrast to the previous version, the
library is only built from under /usr/src/lib/libcrypt, which pulls in the
extra files from /usr/src/secure/lib/libcrypt if it exists. This means no
duplication of code between the two directories.

In order to support blowfish passwords, the blowfish encryption/decryption
code from openbsd has been included - this probably should be broken out
into its own library, perhaps combined with the DES routines into a
libcrypto.

The new library (and changes to passwd(1)) is available at

http://www.physics.adelaide.edu.au/~kkennawa/new-crypt.tar.gz

and should be extracted over the top of your /usr/src tree (since the
changes are so large it's not worthwhile providing diffs). I'd appreciate
it if people could test this and see how it goes (back up your current
libcrypt* first!!) - I've tested it myself fairly thoroughly, but there
may be some bootstrap or backwards-compatability issues, and I haven't yet
tested it on an existing OpenBSD password file. I'd also like to hear any
feedback about the code itself.

Thanks to Brandon Gillespie (who committed the original code on which
this version is based) and Mark Murray for their help.

Kris

-----
"Never criticize anybody until you have walked a mile in their shoes,
because by that time you will be a mile away and have their shoes."
-- Unknown



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message
----- FOO ends -----

а если без этого, то /usr/src/usr/bin/passwd/local_passwd.c подпатчить можно
(уже с полгода с этим живу):

----- local_passwd.c.diff begins -----
*** ./local_passwd.c.orig Tue Feb 2 16:03:19 1999
--- ./local_passwd.c Tue Feb 2 16:03:54 1999
*************** getnewpasswd(pw, nis)
*** 165,170 ****
--- 165,171 ----
#else
/* Make a good size salt for algoritms that can use it. */
gettimeofday(&tv,0);
+ #if 0
if (strncmp(pw->pw_passwd, "$1$", 3)) {
/* DES Salt */
to64(&salt[0], random(), 3);
*************** getnewpasswd(pw, nis)
*** 173,184 ****
--- 174,188 ----
salt[8] = '';
}
else {
+ #endif
/* MD5 Salt */
strncpy(&salt[0], "$1$", 3);
to64(&salt[3], random(), 3);
to64(&salt[6], tv.tv_usec, 3);
salt[8] = '';
+ #if 0
}
+ #endif
#endif
return (crypt(buf, salt));
}
----- local_passwd.c.diff ends -----

/fjoe

--- Msged/BSD TE 06 (pre)
* Origin: UTSL (2:5000/79@fidonet)

459 Прочтений •  [[FreeBSD] Как выключить DES в паролях? (security des crypt)] [08.05.2012] [Комментариев: 0]
Добавил: Ukraine Vova
Ссылки
HTML: 
[BB Url]: 
Похожие статьи
Название Добавил Добавлено
• [FreeBSD] Как выключить DES в парол... Ukraine Vova 08.05.2012
Ни одного комментария? Будешь первым :).
Пожалуйста, авторизуйтесь для добавления комментария.

Проект входит в сеть сайтов «8Gamers Network»

Все права сохранены. 8Gamers.NET © 2011 - 2025

Статьи
Рецензия на Pressure
Рецензия на Pressure
Чтобы обратить на себя внимание, начинающие маленькие разработчики, как правило, уходят в жанры, ...
Рецензия на Lost Chronicles of Zerzura
Рецензия на Lost Chron...
Игры, сделанные без любви и старания, похожи на воздушный шар – оболочка есть, а внутри пусто. Lo...
Рецензия на The Bridge
Рецензия на The Bridge
«Верх» и «низ» в The Bridge — понятия относительные. Прогуливаясь под аркой, можно запросто перей...
Рецензия на SimCity
Рецензия на SimCity
Когда месяц назад состоялся релиз SimCity, по Сети прокатилось цунами народного гнева – глупые ош...
Рецензия на Strategy & Tactics: World War 2
Рецензия на Strategy &...
Название Strategy & Tactics: World War II вряд ли кому-то знакомо. Зато одного взгляда на ее скри...
Рецензия на игру Scribblenauts Unlimited
Рецензия на игру Scrib...
По сложившейся традиции в информационной карточке игры мы приводим в пример несколько похожих игр...
Рецензия на игру Walking Dead: Survival Instinct, The
Рецензия на игру Walki...
Зомби и продукция-по-лицензии — которые и сами по себе не лучшие представители игровой биосферы —...
Обратная связь | RSS | Донейт | Статистика | Команда | Техническая поддержка