473,387 Members | 1,942 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,387 software developers and data experts.

Encryption

Hello group,

to give access to some of my pages I use a loginscript. When people register
the password is encrypted with the md5 function: $passw=md5("$inv_passw");

Now I want to have the user to ask for his password when he lost it by mail.
So the encrypted password needs to be decrypted. I thought to use the next
command:
$uncrypted = decrypt_md5($assw);

but this gives a fault:
Fatal error: Call to undefined function: decrypt_md5()

Can somebody tell me what I do wrong.

Thnx in advance.

RotterdamStudents
Jul 17 '05 #1
3 1691
RotterdamStudents wrote:
Hello group,

to give access to some of my pages I use a loginscript. When people
register the password is encrypted with the md5 function:
$passw=md5("$inv_passw");

Now I want to have the user to ask for his password when he lost it
by mail. So the encrypted password needs to be decrypted. I thought
to use the next command:
$uncrypted = decrypt_md5($assw);

but this gives a fault:
Fatal error: Call to undefined function: decrypt_md5()

Can somebody tell me what I do wrong.


md5 -can't- be decrypted... It's a one-way hash function

--
MVH Jeppe Uhd - NX http://nx.dk
Webhosting for nørder og andet godtfolk
Jul 17 '05 #2
Jeppe Uhd wrote:
to give access to some of my pages I use a loginscript. When people
register the password is encrypted with the md5 function:
$passw=md5("$inv_passw");

Now I want to have the user to ask for his password when he lost it
by mail. So the encrypted password needs to be decrypted. I thought
to use the next command:
$uncrypted = decrypt_md5($assw);

but this gives a fault:
Fatal error: Call to undefined function: decrypt_md5()

Can somebody tell me what I do wrong.


md5 -can't- be decrypted... It's a one-way hash function


And there's no such function as decrypt_md5(), hence the error message :)

If you want to check a function go to www.php.net/function_name where
function_name is the name of the function you want more info on. If the
function exists you'll be taken directly to the manual page. If it doesn't
then you'll be given a list of functions with similar names.
Jul 17 '05 #3
RotterdamStudents wrote:
Hello group,

to give access to some of my pages I use a loginscript. When people
register the password is encrypted with the md5 function:
$passw=md5("$inv_passw");

Now I want to have the user to ask for his password when he lost it
by mail. So the encrypted password needs to be decrypted. I thought
to use the next command:
$uncrypted = decrypt_md5($assw);

but this gives a fault:
Fatal error: Call to undefined function: decrypt_md5()

Can somebody tell me what I do wrong.


Most of all, you're trying to decrypt.

Instead of this, when someone loses the password you should create a new one
and send it, and write that new one into database, encrypted.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 17 '05 #4

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

Similar topics

1
by: Cliff | last post by:
We are trying to connect to 3 different Oracle databases using MS Access as the front-end and ODBC as the connection. The problem that we are having is that 1 of the databases requires a...
113
by: Bonj | last post by:
I was in need of an encryption algorithm to the following requirements: 1) Must be capable of encrypting strings to a byte array, and decyrpting back again to the same string 2) Must have the same...
7
by: Alan Silver | last post by:
Hello, I am writing a page where sensitive data is collected (over SSL) and stored in a database. I have been looking at the .NET encryption classes, but am a bit confused as to which is best...
2
by: Sumit Gupta | last post by:
Can anyone please tell me how to encrpt string or any kind of Data. Also the Algorithm of Compression. Any Link tutorial etc. Like : Zip or RAR Formats etc.
9
by: sweety | last post by:
Dear All, How to encrypt a C data file and make binary file and then have to read a bin file at run time and decrypt the file and have to read the data. Any help to achive this pls. Would be...
4
by: pintu | last post by:
Hello everybody.. I hav some confusion regarding asymmetric encryption.As asymmetric encryption it there is one private key and one public key.So any data is encrypted using private key and the...
1
by: =?Utf-8?B?bWljcm9ob2Y=?= | last post by:
Short version: Is there a way to configure (preferably programmatically) the max encryption strength that will be used by the framework when connecting to a particular SSL-protected web service? ...
11
by: John Williams | last post by:
I've written a simple program to do XOR encryption as my first foray into understanding how encryption works. The code compiles fine, however it segmentation faults on every run. using gdb to...
22
by: j1mb0jay | last post by:
I have had to create a simple string encryption program for coursework, I have completed the task and now have to do a write up on how it could be improved at a later date. If you could look...
19
by: klenwell | last post by:
Another request for comments here. I'd like to accomplish something like the scheme outlined at this page here: http://tinyurl.com/3dtcdr In a nutshell, the form uses javascript to hash...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.