Gianluca Neri wrote:The problem is that not always the final coded strings have the same length as we expect (32 length strings).
Gianluca Neri wrote:- If the value to encrypt and the key are hexadecimal strings how do we convert them in a byte array? Should we use string.getBytes() or java.xml.bind.DatatypeConverter.parseHexBinary(string)?
Gianluca Neri wrote:- Is it correct that an hexadecimal 32 character (16 byte) value with a 32 characters (16 byte) key produces as blowfish encrypted value a 23 byte array?
Gianluca Neri wrote:- How can we convert the 23 byte array into a fixed 32 character hexadecimal string?
Gianluca Neri wrote:- The resulti if Cipher.dofinal for blowfish algorithm is a base64 encrypted byte array?