org.jboss.security.Base64Encoder doesn't work for certain lengths
(1026 or 3072 for example)
--------------------------------------------------------------------------------------------
Key: SECURITY-992
URL:
https://issues.jboss.org/browse/SECURITY-992
Project: PicketBox
Issue Type: Bug
Components: JBossSX
Affects Versions: PicketBox_5_1_0.Final
Reporter: Ricardo Martin Camarero
Assignee: Ilia Vassilev
Fix For: PicketBox_5_1_1.Beta1
Attachments: Reproducer.java
When a byte array of certain lengths (1026 and 3072 for example) is encoded in base64
using the class {{org.jboss.security.Base64Encoder}} the last chunk of four bytes is
omitted.