![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 110 Pomógł: 0 Dołączył: 4.02.2003 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
W jaki sposob wyciagnac pierwistek trzeciego stopnia w php? drugiego jest funkcja sqrt() a trzecige nie ma (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) Wiem ze logarytmami mozna jakos obliczyc lecz ja nie wiem jak (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) Prosil bym kogos o podanie mi wzoru w jaki sposob to zrobic. Z gory dziekuje i pozdrawiam evo |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 012 Pomógł: 109 Dołączył: 26.09.2003 Skąd: nexis.pl Ostrzeżenie: (0%) ![]() ![]() |
[php:1:aa3dd9ba84]<?php
// wycinek z php MANUAL // Next part to generate a random salt with letters and/or numbers mt_srand((double)microtime()*1000000); $chars = array_merge(range('a','z'),range('A','Z'),range(0,9)); for($i=0;$i<2;$i++) { $salt .= $chars[mt_rand(0,count($chars)-1)]; } // Salt $salt created // Now add the user $passwords[$newuser] = crypt($newpass,$salt); // Now the array $passwords contains the existing users and (encrypted) passwords from the file and the new user (and the encrypted password). ?>[/php:1:aa3dd9ba84] Tzn., że kodowanie hasła dla htpasswd odbywa się przy pomocy losowo wygenerowanego ciągu $salt? 8O |
|
|
![]() ![]() |
![]() |
Aktualny czas: 16.09.2025 - 20:47 |