Since MD5 is not recommended which other can be used.
3 1395 Banfa 9,065
Recognized Expert Moderator Expert
Try SHA1, it is better then MD5.
If you read the MySQL documentation it says that SHA1 is not much(any) better than MD5 for security
AES is the new defacto standard. it is in both PHP and mysql by default, i find the mysql method a LOT easier to use. its the same enc type that the US govt uses, there are only 2 HYPOTHETICAL breaks to it in existence. in php it is part of the mcrypt library, and it goes as rhijndahl or something like that, after the 2 people who created it, and make sure to use the 128bit version, as that is the AES version.
in mysql its just: -
INSERT INTO table
-
(field)
-
VALUES
-
(AES_ENCRYPT('value', 'secret_key'));
-
and to retrieve it (warning, you MUST have the same key you stored it with): -
SELECT
-
AES_DECRYPT('field', 'secret_key')
-
FROM table
-
simple as that.
-tim
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Robin Bryce |
last post by:
Hi,
I've been looking at generators from the context of event oriented web
application development. I was thinking of submitting a version of
http://www.wiretooth.com/eventhub_recipe.html as a recipe for the python
cookbook.
I'd really appreciate any comments people have on it.
|
by: Burgess Meredith |
last post by:
I suffered through the interminal drivel, that the Dynamic Dummies,
freeagent-Man, and the Boy Blunder had to say,
> On Thu, 09 Oct 2003 11:57:07 +1000, Chris wrote:
>
>> On Thu, 09 Oct 2003 06:59:51 +1000, freeagent wrote:
>>
>>> I recently recieved a copy of the current demo version of Sun's Java
>>> Desktop System, a SuSE 8.1-based distribution previously known as Project
>>> Mad Hatter. I signed up for the early release program...
|
by: Erik Arner |
last post by:
Hi, I really need some help here. After upgrading to g++ 3.4 I have run
into all sorts of troubles that I'm sure depends on my lack of proper
understanding of C++. I would now like to get it right once and for all,
if possible.
Most severe is the problem illustrated by the code below. It's based on
the "pluggable factory pattern" described in
http://www.adtmag.com/joop/crarticle.asp?ID=1520
|
by: Roy Gourgi |
last post by:
Hi,
Here is a much simpler version of my time scheduling program. As you can see
in the GV (Global Variable class) I have 2 arrays gaSumWorkDays (already
initialized with the values) and gaSeconds. All I want to do when I run my
CVerifyMissingTime class is to verify whether the sum of the 2 colums of
gaSeconds in gaSumWorkDays is > 0.
I hope that this is more intuitive than the first version.
|
by: Fred Hebert |
last post by:
I am trying to learn VC.NET and convert some Borland C++ applications. The
syntax differences are killing me...
Is there an easy way to convert a hex string, entered by the user, to a
binary string and back? This is the actual code I am trying to convert.
HexToBin(KeyEdit->Text.c_str(), BinKey, sizeof(BinKey));
HexToBin is a generic function that converts a string like "1b34c38d" to
it's binary equivalent. There is also a BinToHex...
| |
by: ZorpiedoMan |
last post by:
Why Doesn't THIS work:
-----------------------------------------------------------
A Windows Form has three controls:
TextBox1
BindButton
ShowTextButton
ChangeTextButton
Code:
|
by: seberino |
last post by:
Is there any advantage to a language having a nice mathematically
compact grammar like LISP does? (or at least used to?)
Many have admired the mathematically simple grammar of LISP
in which much of the language is built up from conses IIRC.
Python's grammar seems complicated by comparison.
Is this anything to worry about?
|
by: phil-news-nospam |
last post by:
Here is a simpler (no drop shadows) example of the padding bug I see:
http://phil.ipal.org/usenet/ciwas/2006-05-08/buttons-1.html
So far I find nothing in the CSS2 document that says I should get this
kind of inconsistent result.
--
-----------------------------------------------------------------------------
| Phil Howard KA9WGN | http://linuxhomepage.com/ http://ham.org/ |
|
by: Fabio Z Tessitore |
last post by:
Hi all,
reading Dive Into Python, on Chapter 6 (exception), I've found:
"This code comes from the getpass module, a wrapper module for getting a
password from the user"
try:
import termios, TERMIOS
except ImportError:
|
by: mcse jung |
last post by:
Here is asample program that writes a program and then executes it.
Do you knowof a much simpler way of writing a program that writes a program?
"""
-----------------------------------------------------------------------------
Name: _writePythonCode.py
Purpose: This script writes Python code and thentransfers control to it.
Author: MCSEJUNG
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |