Which system did you use to encode the data? Base64 always encodes
arbitrary binary data in a small set of the ASCII character set.
AFAIK Base64 does not encode binary data using the EBCDIC charater set.
Maybe you need to look for a specific Z/OS Base64 implementation.

According to RFC 4648: Base64 uses a 65-character subset of US-ASCII.

Best regards,
Werner


Base 64 just encode arbitrary binary data to 7bit
ASCII code - AFAIK there is no spec that Base

Am 31.08.2010 19:44, schrieb Beth Ayres (JIRA):
> Can't use Password Digest on Z/OS
> ---------------------------------
> 
>                  Key: WSS-243
>                  URL: https://issues.apache.org/jira/browse/WSS-243
>              Project: WSS4J
>           Issue Type: Bug
>           Components: WSS4J Core
>     Affects Versions: 1.5.8
>          Environment: Z/OS
>             Reporter: Beth Ayres
>             Assignee: Ruchith Udayanga Fernando
> 
> 
> Base64.decode doesn't account for EBCDIC encoding.
> 
> line 281:          byte[] base64Data = encoded.getBytes();
> 
> results in an array of garbage.
> 
> Then, line 307:          b1 = base64Alphabet[base64Data[dataIndex++]];
> 
> causes an ArrayIndexOutOfBoundsException.
> 
> The result is that the PasswordDigest is blank.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscr...@ws.apache.org
For additional commands, e-mail: wss4j-dev-h...@ws.apache.org

Reply via email to