current position:Home>[MySQL] Part VIII Encryption and Decryption Functions
[MySQL] Part VIII Encryption and Decryption Functions
2023-01-25 11:26:02【Tree_wws】
【MySQL】Part 8 Encryption and decryption functions
Article directory
8. Encryption and decryption functions
function | Usage |
---|---|
PASSWORD(str) | returns the encrypted version of the string str, a 41-bit long string.The encryption result is irreversible , which is often used for user password encryption. (Cannot be used for versions above 8.0) |
MD5(str) | Returns the md5-encrypted value of the string str, which is also an encryption method.If the parameter is NULL, NULL will be returned |
SHA(str) | Calculate and return the encrypted password string from the original plaintext password str. When the parameter is NULL, return NULL.SHA encryption algorithm is more secure than MD5 . |
ENCODE(value,password_seed) | Returns the encrypted value using password_seed as the encrypted password. (Not available for versions above 8.0) |
DECODE(value, password_seed) | Return to use password_seed as the encrypted password to decrypt the value. (Not available for versions above 8.0) |
SELECT PASSWORD('helloworld'),MD5('helloworld'),SHA('helloworld'),ENCODE('123','hello'),DECODE(ENCODE('123','hello'),'hello')FROM DUAL;
Summary
The above is what I want to talk about today, I hope it will be helpful to everyone!!!
copyright notice
author[Tree_wws],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2023/025/202301251106214574.html
The sidebar is recommended
- Case when then else end in SQL statement
- Vue project construction
- [free and open source] 2020 exclusive global epidemic big data interface (real-time access)
- HAOGE's linux learning notes LS command
- [free and open source] 2020 exclusive global epidemic big data interface (real-time access)
- Notes on Chapter 2 of 32-bit assembly language programming under Windows Environment
- 2、 Commands commonly used in Linux Development
- Linux Basics
- [MySQL] common data types
- Java bug fix
guess what you like
[uniapp] sass theme switching
Linux < basic commands > getting started
Java basic ~ local time date class (local date, Localtime, local day)
【SpringCloud】——Nacos
Linux connection merge file content (cat command)
Linux directory and file management (including common options of vim editor)
Vscode common C / C + + plug-ins
Fast processing and management of files and folders in MAC
Linux - directory and file operations
How to calculate conditional grouping of double index data with pandas?
Random recommended
- Linux Basics
- Array dynamically modified by Java -- ArrayList
- Java28:File
- Red Hat Enterprise Linux 8 system learning (IV)
- Vue skill tree (Introduction)
- Dockerfile parameters
- Summary of common knowledge points of Linux system management (Chapter 1-5)
- Linux command line learning notes
- Java-Jsp-JSTL
- Linux -- common instructions
- Linux common work instructions
- Git operation
- [Vue] write a low matching hamster with vue2
- Java web learning notes (core configuration of mybatis)
- [introduction to machine learning] - Lesson 4 - decision tree
- Maven learning
- Winter combat camp hands-on combat - Introduction to Linux text processing in-depth analysis of hands-on operations leading mouse cloud Xiaobao backpack shadowless
- Linux user identity and file permissions
- Linux 1: basics and common commands
- DCL in MySQL
- Linux basic programming tutorial
- Springboot + mybatis generator reverse engineering automatically generated code file content detailed analysis + use (mapper.xml + entity class + add, delete, check and modify condition template class + mapper interface class)
- Linux file permissions
- Flume (principle explanation, configuration, flume importing data to Kafka or HDFS or logger)
- Spring boot spring annotation development
- [C + +] string of STL
- Linux common file commands
- Git simple learning
- What is the command for Linux to view all files
- Linux periodic task planning and task scheduling and examples
- Linux learning notes
- Summary of common linux commands and operation and maintenance tools
- Electron and node JS version correspondence (full version)
- Springboot's idea construction and use process (I)
- Bootstrap series tables
- Linux commands
- Vs code build Vue project
- Uni app quick start
- [soft test] Linux operating system (II) -- Linux user management