securisec / chepy

Chepy is a python lib/cli equivalent of the awesome CyberChef tool.
GNU General Public License v3.0
938 stars 54 forks source link

How to use chepy to implement the cfb encryption mode of aes? #25

Closed shengchenyang closed 2 years ago

shengchenyang commented 2 years ago

when I use CyberChef to implement the cfb encryption of aes, the corresponding encryption mode is not found in chepy.

An example of CyberChef is shown in the figure: image

But there is no cfb mode for aes in chepy: image

securisec commented 2 years ago

Thank you for opening the issue @shengchenyang . I have implemented CFB mode for AES. Do keep in mind that pythons default behavior uses CFB8 mode while CyberChef uses CFB128. Chepy implements CFB128 to stay inline with CyberChef.