473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

migrating md5_crypt from php to asp.net

Somebody know How can I migrate that function?

The source of the php function is in

http://www.oxxus.net/php-web-hosting...e-md5crypt.htm

The function name is: md5_crypt
Thanks!!
Nov 18 '05 #1
3 1406
Assuming all that does is create an md5 hash for a given string:

Byte[] unencoded = Encoding.Default.GetBytes("STRING TO ENCODE");
Byte[] encoded = MD5.Create().ComputeHash(unencoded );
return BitConverter.ToString(encoded );

you'll need to import System.Text and System.Security.Cryptography

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"David" <ac*****@gmail.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
Somebody know How can I migrate that function?

The source of the php function is in

http://www.oxxus.net/php-web-hosting...e-md5crypt.htm

The function name is: md5_crypt
Thanks!!

Nov 18 '05 #2
No Karl, the function combines the md5 hash, a salt and a magic string for
doing a lot of stuffs

thanks anyway!!

:)
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
escribió en el mensaje news:ef***************@TK2MSFTNGP14.phx.gbl...
Assuming all that does is create an md5 hash for a given string:

Byte[] unencoded = Encoding.Default.GetBytes("STRING TO ENCODE");
Byte[] encoded = MD5.Create().ComputeHash(unencoded );
return BitConverter.ToString(encoded );

you'll need to import System.Text and System.Security.Cryptography

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"David" <ac*****@gmail.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
Somebody know How can I migrate that function?

The source of the php function is in

http://www.oxxus.net/php-web-hosting...e-md5crypt.htm

The function name is: md5_crypt
Thanks!!


Nov 18 '05 #3
Hello David.
I have a similar problem to your's.
Do you have already a solution ?

Thanks

Ricardo Jesus

"David" wrote:
No Karl, the function combines the md5 hash, a salt and a magic string for
doing a lot of stuffs

thanks anyway!!

:)
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
escribió en el mensaje news:ef***************@TK2MSFTNGP14.phx.gbl...
Assuming all that does is create an md5 hash for a given string:

Byte[] unencoded = Encoding.Default.GetBytes("STRING TO ENCODE");
Byte[] encoded = MD5.Create().ComputeHash(unencoded );
return BitConverter.ToString(encoded );

you'll need to import System.Text and System.Security.Cryptography

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"David" <ac*****@gmail.com> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
Somebody know How can I migrate that function?

The source of the php function is in

http://www.oxxus.net/php-web-hosting...e-md5crypt.htm

The function name is: md5_crypt
Thanks!!



Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Zvika Glickman | last post by:
I'm migrating DB2 to ORACLE 9I. In the DB2 schema each table defined in diferrent tablespace. Few tablespaces are define on the same STOGROUP (there are few STOGROUP). It's a big db (few terra...
0
by: steve | last post by:
I am having huge problems migrating large db’s from one server to another. I use phpmyadmin to dump the data into a file, and then migrate it to my production server. Then I try to use this:...
4
by: Bernardo Robelo | last post by:
Hi, I am interested in migrating Microsoft Access database to Postgres database. But I do not have idea of like initiating. Maybe some tool exists for this problem. Thanks you. Bernardo
4
by: Juan | last post by:
I'm migrating a VB.Net app to c# and found the following: Private m_State(,) As Integer If anyone knows what is the analogous in c#... is it an array? Thanks, Juan.
6
by: Shai Levi | last post by:
Hi, I'm trying to migrate native c++ class to managed c++ class. The native class header definition looks as: class NativeClass { public: typedef void (CbFunc1)(int n,void* p);
3
by: BobRoyAce | last post by:
I would really appreciate recommendations for sources of materials on migrating ASP applications to ASP.NET (books, URL's, etc.). Also, is there a magazine that is particularly good for .NET stuff....
2
by: Jean-Claude Adams | last post by:
Hi Folks. I need some tutorial or some expertice about the subject. Because, i'm have a customer, need's change the actual appl, but the only issue is a dbf database, and the GUI is the older...
4
by: Collin Peters | last post by:
I have searched the Internet... but haven't found much relating to this. I am wondering on what the best practices are for migrating a developmemnt database to a release database. Here is the...
34
by: subramanian100in | last post by:
Is there any difference between porting and migrating. Kindly explain
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.