Giter Site home page Giter Site logo

Comments (8)

Blankj avatar Blankj commented on May 3, 2024

我sdk23测试怎么不报错的?你试试把我里面的这个字段改成你那个
public static String TripleDES_Transformation = "DESede/ECB/NoPadding";
我一直都用的java8

from androidutilcode.

ChineseLincoln avatar ChineseLincoln commented on May 3, 2024

好的 我改改看

from androidutilcode.

Blankj avatar Blankj commented on May 3, 2024

你可以看下这个
http://stackoverflow.com/questions/4062015/how-to-solve-javax-crypto-illegalblocksizeexception-data-not-block-size-aligned

from androidutilcode.

Blankj avatar Blankj commented on May 3, 2024

我方法是没问题的应该,你输入的数据对NoPadding有问题,你的data长度不是8的倍数吧

from androidutilcode.

ChineseLincoln avatar ChineseLincoln commented on May 3, 2024

额,好吧,我的数据长度的确不是8的倍数。
抱歉
谢谢你的回复

from androidutilcode.

realchen avatar realchen commented on May 3, 2024

我也遇到了这个问题,修改为8的倍数方法就可以。
但是我数据源长度是不一定的,我修改TripleDES_Transformation 值为DESede/ECB/PKCS5Padding
也还是不行
请问下你们是如何解决的?

from androidutilcode.

Blankj avatar Blankj commented on May 3, 2024

设置不同的模式和偏移量,这个你问问你们后台

from androidutilcode.

realchen avatar realchen commented on May 3, 2024

谢谢大神回复,我这边对接的是第三方平台。并不是自己这边的后台,我再联系联系吧

from androidutilcode.

Related Issues (20)

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.