ENCRYPT(str[,salt]) encrypts str using the Unix crypt() system call. : ENCRYPT : Encryption Compression Functions MySQL TUTORIALS


MySQL TUTORIALS » Encryption Compression Functions » ENCRYPT »

 

ENCRYPT(str[,salt]) encrypts str using the Unix crypt() system call.


Returns a binary string.

The salt argument should be at least a two-character string.

If no salt argument is given, a random value is used.

mysql>
mysql> SELECT ENCRYPT('hello');
+------------------+
| ENCRYPT('hello') |
+------------------+
| NULL             |
+------------------+
row in set (0.01 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Encryption Compression Functions
» ENCRYPT