wokier / gwt-crypto

Automatically exported from code.google.com/p/gwt-crypto
8 stars 1 forks source link

Error decrypting passwords more than 7 characters long #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. enter password more than 7 characters long
2. try decrypting the password
3.

What is the expected output? What do you see instead?

The expected output is plaintext password.

Instead we get an exception 'Pad Block Exception'

What version of the product are you using? On what operating system?

The latest available from this site.
gwt-crypto-1[1].0.0.jar
OS : Windows XP and Linux

Please provide any additional information below.

The error is in the gwt portion of the jar - inside Sys.java.
The method arraycopyBytes() was not looping properly.
should be :
        for (int s = 0; s < length; s++) {
            dest[destIdx++] = src[srcPos++];
        }

Original issue reported on code.google.com by b.mal...@gmail.com on 9 Apr 2008 at 5:38

GoogleCodeExporter commented 9 years ago
This should be fixed shortly by  a user contribution.

Original comment by pappi...@gmail.com on 12 Jun 2009 at 5:54

GoogleCodeExporter commented 9 years ago

Original comment by moor...@gmail.com on 13 Jun 2009 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by moor...@gmail.com on 13 Jun 2009 at 3:33