#1  
Old 2nd October 2008, 18:53
qwe010 qwe010 is offline
Member
 
Join Date: Nov 2006
Posts: 52
Thanks: 0
Thanked 1 Time in 1 Post
Default encrypt in lm formula ?

hello

in php i can encrypt in md5 formula

but how i can encrypt in lm/des/md4 formula

any idea ?
Reply With Quote
Sponsored Links
  #2  
Old 4th October 2008, 22:42
qwe010 qwe010 is offline
Member
 
Join Date: Nov 2006
Posts: 52
Thanks: 0
Thanked 1 Time in 1 Post
Default

up for help
Reply With Quote
  #3  
Old 5th October 2008, 11:52
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

to hash or one-way-encrypt data with other algorithms than md5 either see crypt() or use sha1().

for real en/decryption check gnupg implementation in php

you may also check http://pear.php.net for other usefull things here.
Reply With Quote
  #4  
Old 8th October 2008, 06:57
qwe010 qwe010 is offline
Member
 
Join Date: Nov 2006
Posts: 52
Thanks: 0
Thanked 1 Time in 1 Post
Default

thanks Ben

but what about sha265 ?
Reply With Quote
  #5  
Old 8th October 2008, 09:29
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
 
Default

i don't know. I can't search more in the www than you can (google would guide you to usercomments like the following).

Quote:
Source: http://us2.php.net/sha1

Note that the sha1 algorithm has been compromised and is no longer being used by government agencies.

As of PHP 5.1.2 a new set of hashing functions are available.

http://www.php.net/manual/en/function.hash.php

The new function hash() supports a new range of hashing methods.

echo hash('sha256', 'The quick brown fox jumped over the lazy dog.');

It is recommended that developers start to future proof their applications by using the stronger sha-2, hashing methods such as sha256, sha384, sha512 or better.

As of PHP 5.1.2 hash_algos() returns an array of system specific or registered hashing algorithms methods that are available to PHP.

print_r(hash_algos());
Btw are you looking for something specific? As you mentioned some (hasing) algorithms above, but not sha256 but even the much weaker md4...
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP authentication with mysql encrypt function igongora Programming/Scripts 16 18th November 2011 17:19
Is postfix information encrypt since I followed http://www.falkotimme.com/howtos/p... lexcomputer Installation/Configuration 2 9th November 2005 03:02


All times are GMT +2. The time now is 01:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.