Giter VIP home page Giter VIP logo

encrypt-decrypt's Introduction

项目介绍

项目地址:https://github.com/simplephp/encrypt-decrypt

AES PKCS7Padding RSA

按照加密方式可分为对称和非对称加密,对称加密即发送方和接收方都是用相同的秘钥进行加解密,非对称加密则使用一对公私钥来进行加解密,发送方使用公钥加密数据,接收方可使用私钥来解密。

  • 对称加密:

  • 简单的加密设计: 用密钥对原文做字节代替、行移动、列混淆、加轮秘钥
    
  • 优点: 安全、快速(加解密运算速度快、资源消耗少、消耗时间少)、支持二进制
    
  • 缺点: 发送方和接收方协定秘钥,双方保存好秘钥安全不被泄漏,加重了心智负担
    
  • 常见的对称加密方式有 DES、3DES、AES、Blowfish、IDEA、RC5、RC6, 从安全性、资源消耗、运算速度、消耗时间综合来看 AES 都是值得选择的对称加密方式。

- 注意一下代码均为 DEMO 版本, 存在不严谨的地方,切勿直接拿到生产环境使用,否则后果自负。

项目结构

├─ Encrypt
│  ├─ AES
│     ├── Java
|         ├── Security
|             ├── src
|                 ├── com.tye.util
|                     ├── Aes.java
│     ├── Go
|         ├── security
|             ├── src
|                 ├── aes_test.go
│     ├── Python
|          ├── Aes.py
│     ├── Node
|          ├── Aes.js
│     ├── PHP
|          ├── Aes.php
│     ├── JavaScript
|          ├── Aes.html

如果你发现本项目涉及程序运行有误,欢迎提交 issues 进行指正。如对您有所帮助,请不吝:star2:。

关于 AES-[128|192|256]-CBC

AES-[128|192|256]-CBC 运行结果

结果 编程语言
Java-AES-128-CBC-PKCS7Padding Java
Go-AES-128-CBC-PKCS7Padding Go
Python-AES-128-CBC-PKCS7Padding Python
NodeJS-AES-128-CBC-PKCS7Padding NodeJS
PHP-AES-128-CBC-PKCS7Padding PHP
JavaScript-AES-128-CBC-PKCS7Padding JavaScript

问题反馈

encrypt-decrypt's People

Contributors

simplephp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.