java 安全 加密 小解

    技术2022-05-20  37

       昨天来到 黑马训练营,刚来真是很郁闷呀,高手太多了,而我却又是一个基础都没有的新手,真是头太大了,哎 既来之,则安之,那就放心来,好好的努力吧!

     

       今天吧  今天 讲过DES/md5/AES算法 SHA  非对称算法的基本知识,还讲到如何调用JAVA包来使用这些算法来加密些数据,

    先把今天的学的类贴出来:

     

    Cipher <-javax.crypto.Cipher <-java.lang.Object

    Constructor Summaryprotected Cipher(CipherSpi cipherSpi, Provider provider, String transformation)           Creates a Cipher object.

     

     byte[]doFinal()           Finishes a multiple-part encryption or decryption operation, depending on how this cipher was initialized.

     

     voidinit(int opmode, Certificate certificate)           Initializes this cipher with the public key from the given certificate.

     

    byte[]doFinal(byte[] input)           Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation.

    学到的生词:Certificate 证书  

    algorithm  运算法则

    specified   指定

    estimate   估计的  判断的

    Class Certificate

    java.lang.Object  java.security.cert.Certificate

    ObjectOutputStream 对象写入

    CipherInputStream   加密输入流

    CipherInputStram    加密输出流

    Class KeyGenerator  

     

     

    Cipher cipher =Cipher.getInstance("DES");

     

    网站的安全证书验证 如何读取安全证书

    HTTPS SSL安全认证 过程

     KEYTOOL 用法  制作一个证书 并颁发给服务器地址

    如何读取安全证书的各个参数

     

     

    类实例建立 有三种常用方式  NEW 类名   ,类.getInstance 类(工厂)factory建立

    Serializable  当有个对象想持久化存储时 实现这个接口  便会 OBJ-->>硬盘  等到用的时候 --》OBJ

    今天主要了解的是 JAVA安全  JCA  JSEE

    加密的钥匙有三种 密钥 公钥 私钥  分别是ScrectKey PublicKey PrivateKey

    MD5 加密 用到的类是MessageDiges 对象的Update and digest

     

     

     


    最新回复(0)