Blowfish encryption with different keys produces same ciphertext

I have set up a test app with Blowfish encryption taken from someone else's library. I have been astonished to find that password "Test" gives the same encrypted text as password "TestTestTestTest". Is this normal behavior of the algorithm or is it a bug?

• @forest it does though. Read the keyscheduling code... – Henno Brandsma May 28 '19 at 9:38
• @forest he's not talking about bcrypt, which would give different outputs, but the classic encryption algorithm. – Henno Brandsma May 28 '19 at 9:39

It looks like the library is treating the string as the key to Blowfish, which has a veriable key size; the way the keysetup is done (with a cyclical use of the key bytes, see more details on the Wikipedia page) implies that key $$k$$ of length $$n$$ and key $$k||k$$ of length $$2n$$ have the same expanded key and thus an equivalent encryption/decryption function. Your "Test" example also illustrates this.