Quoting myforwik's answer, CBC, OFB and CFB are identical, however OFB/CFB is better because you only need encryption and not decryption, which can save code space.
I want a pure implementation of AES CFB in PHP. I specifically do NOT want mcrypt
.
I therefore turned to PHPSecLib. However, as per the documentation, the library only supports ECB and CBC.
I do not think myforwik meant that CBC and CFB can be used interchangeably... So, a) is there a CFB implementation out there, or b) can I (easily) implement CFB mode from PHPSecLib's CBC implementation?