Code Monkey home page Code Monkey logo

php-java-aes-128-ecb's Introduction

最近做项目涉及到一丢丢的安全问题,需要 PHP 加密,Java 解密,对方使用的 AES加密与解密填充模式使用AES/ECB/PKCS5Padding,编码为UTF-8,发现PHP的padding与Java的padding不一样,so 需要自己对加密字符串padding后在加密就能解决,php 加密和 java 不一样的问题,至于详细问题请google 不想误人子弟 。闲话不说了,直接上截图,如果帮助到你请给一个"星波波"奥(我真是厚脸皮+虚荣心的人)。注意 java 和 php的代码均为demo版本,切勿拿到生产环境使用,需要修改,我是做PHP 的,java 内功差,部分代码没有catch 异常,哈哈!!! php 代码演示截图 image java 代码演示截图 image

php-java-aes-128-ecb's People

Contributors

simplephp avatar

Watchers

 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.