Java Encryption types

Source: Internet
Author: User
Tags base64 asymmetric encryption

Kinds:

    1. Base64 Encryption , base64 encryption is not in the category of encryption, but for transcoding, such as the transcoding of the URL.
    2. Message digest algorithm , which contains Md5,sha,mac encryption, are irreversible, but some online said can be decrypted.
    3. symmetric encryption algorithm ; What is symmetric encryption, is the encryption and decryption of the key is the same, including Des,des3,aes,pbe, which des most infrequently used, easy to be cracked; DES3 is a strong version of Des AES is the fastest and most widely used, and PBE actually uses salt and secret key to implement, is the most complex symmetric encryption algorithm.
    4. Asymmetric encryption algorithm ; encryption and decryption keys are not the same, the public and private keys are a pair, usually there are two encryption methods, one is private key encryption, public key decryption, the other is public key encryption, private key decryption. contains DH,RSA,ELGAMAL,ECC, personal feeling DH's implementation way code is too complex, not recommended, where RSA code implementation is relatively straightforward.
    5. digital signature ; message digest algorithm + Asymmetric encryption algorithm. Contains RSA

There are three main implementations of code

    1. Jdk
    2. Bouncy
    3. Common

  The following article shows some of the example code I wrote myself.

Java Encryption types

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.