DES_ENCRYPT(string [, (key_number | key_string)])

Description: Using the DES algorithm, encrypts the given string using the optional key given by key_number or key_string.

Can be used only when MySQL is compiled with support for SSL connections. Introduced in MySQL 4.0.1.

See also: DES_DECRYPT()

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.