# Region encrypts the specified string in MD5 Mode
//************************************** *******************************//// Security. Encrypt () method//// The encrypt method encrypts a clean string into a hashed string////*********************
Author: hackest [h.s. T.]Source: hackest's blog
Http://www.hackest.cn/post/102/
Introduction
I have been wondering, in what way can I control the permissions that have been obtained for a long time? Webshell, Trojan, or even rootkit? The webshell
1. Java Security Architecture 1.1 Introduction to Java Security architectureJava provides classes and interfaces for the security framework. The JDK security API is the core API for the Java programming language, located in the Java.security package
This paper mainly introduces the Java implementation of the common encryption algorithm-one-way encryption algorithm MD5 and Sha, as follows:
1, the Java security architecture
Introduction to 1.1 Java security architecture
provides classes and
the MD5 algorithm has the following characteristics:1, compressibility: Any length of data, calculated the length of the MD5 value is fixed. 2, easy to calculate: It is easy to calculate the MD5 value from the original data. 3, anti-modification:
I. Brief description
MD5: All called message digest algorithm 5 (Information digest algorithm), can be encrypted, but not decrypted, belong to one-way encryption, usually used for file verification
BASE64: The 8-bit byte of any sequence is
IOS MD5 encryption and iosmd5 Encryption
1. MD5 Encryption
Message Digest Algorithm MD5 (the fifth version of the Message Digest Algorithm in Chinese) is a hash function widely used in the computer security field to provide Message integrity
Instance
Computes the MD5 hash of the text file "Test.txt":
The above code will output:
d41d8cd98f00b204e9800998ecf8427e
Definition and usage
The Md5_file () function computes the MD5 hash of the file.
The Md5_file () function uses RSA data
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.