java,algorithm,encryption,cryptography,block-cipher

Finally figured out. My decryption algorithm should look like this: for(int i = T-1; i >= 0; i--) { y = rotateRight(x ^ y, beta); x = rotateLeft((x ^ k[i]) - y, alpha); } And I accidently swap rotate functions in encryption algorithm. This is correct form: for(int i =...

encryption,coldfusion,cryptography,encryption-symmetric,block-cipher

The problem is encrypt() expects the input to be a UTF-8 string. So you are actually encrypting the literal characters F-F-F-F-9.... rather than the value of that string when decoded as hexadecimal. Instead, you need to decode the hex string into binary, then use the encryptBinary() function. (Note, I did...