chicks / aes

AES.encrypt and AES.decrypt for Ruby
MIT License
86 stars 45 forks source link

Modifying provided key #11

Open sb8244 opened 7 years ago

sb8244 commented 7 years ago

Howdy, I was wondering if someone would be able to elaborate on this line: https://github.com/chicks/aes/blob/master/lib/aes/aes.rb#L155. I'm wrapping my head around AES and was confused by the modification of the key here. If a key is 256bit, is it necessary to do this?

pedro commented 7 years ago

+1, spent a lot of time debugging why I couldn't decrypt a string generated from another language, everything just worked once I removed that key modification.