# CryptionDemoOnKotlin **Repository Path**: ouyangpengdev/CryptionDemoOnKotlin ## Basic Information - **Project Name**: CryptionDemoOnKotlin - **Description**: 使用Kotlin实现常见的对称加密、非对称加密、消息摘要、数字签名的demo - **Primary Language**: Kotlin - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-23 - **Last Updated**: 2021-03-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CryptionDemoOnKotlin 使用Kotlin实现常见的对称加密、非对称加密、消息摘要、数字签名的demo # 对称加密 + 算法 - DES - AES + 特点 可逆、加密速度快,可以加密大文件 # 非对称加密 + 算法 - RSA + 特点 - 可逆、加密速度慢 - 公钥加密、私钥解密;私钥加密、公钥解密。 - 公钥互换 # 消息摘要 + 算法 - MD5 - SHA1 - SHA256 + 特点 - 不可逆,加密后不可破解 - 加密后秘文长度固定,和原始数据大小无关 # 数字签名 + 算法 SHA256withRSA 消息摘要+非对称加密 + 特点 - 私钥签名 - 公钥校验