•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 428,641 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,990 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 654 | Replies: 2
![]() |
Good morning,
I am sure this has been asked before. So here it goes. I've been playing with these two php functions and was wondering if I have the logic right.
let's say I wrote a function called crazy encrypt
I mean what the function is doing is salting the hashes is this overkill though I mean I could write it like
could I make two arrays with the second code? Just playing around, this is how i learn
I am sure this has been asked before. So here it goes. I've been playing with these two php functions and was wondering if I have the logic right.
let's say I wrote a function called crazy encrypt
<?php
function crazyencrypt($password){
$is="isthis";
$overkill="overkill";
$pass = $password.$is;
$pass1=md5($pass).$is;
$pass2=sha1($pass1).$overkill;
$password=md5($pass2, true);
return $password;
}
?>function crazyencrypt($password){
$i = array("isthis", "overkill",md5, sha1,$pass, $pass1, $pass2, $password, true);
$i[4]=$i[7].$i[0];
$i[5]=$i[2]($i[4]).$i[0];
$i[6]=$i[3]($i[5]).$i[1];
$i[7]=$i[2]($i[6],$i[8]);
return $i[7];
} current personal projects The H8ers Club && PCLinuxOS non-official One stop forum
•
•
Join Date: Nov 2007
Location: Bangalore, India
Posts: 3,098
Reputation:
Rep Power: 8
Solved Threads: 240
Dang ! Do you really need this level of encryption
! But anyways, What do you mean by 2 arrays with 2nd code ?
! But anyways, What do you mean by 2 arrays with 2nd code ? Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
*PM asking for help will be ignored*
*PM asking for help will be ignored*
no just like to play with php. Putting the second part into an array
Last edited by Dsiembab : Dec 7th, 2007 at 2:08 pm.
current personal projects The H8ers Club && PCLinuxOS non-official One stop forum
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Generate User ID (PHP)
- $password= '*****' is this safe? (PHP)
- Inserting Elements into existing XML (C#)
- ASP.Net Security 101 Part 1 (ASP.NET)
- Not able to change/update password (PHP)
- How to Hash and Store in Database (ASP.NET)
- code for ......anyone??? (C)
- Hello Help I'm Wired PhP (PHP)
- Forms Authorization/ Authentication using asp .net and vb .net (ASP.NET)
Other Threads in the PHP Forum
- Previous Thread: button (Save target as)
- Next Thread: How to work on ruby on rails inphp



Linear Mode