Simple and Terrifying Encryption Story

When I was developing my new feature, I found something very disturbing. I wrote a test for decoding messages with wrong keys. To be more specific, I replaced the key first char with some other chars (ab, and so on). I expected bad decrypt error to be raised, obviously. And… my test failed! Not only was nothing raised, but after a quick inspection I discovered that my message was properly decoded:


Simple and Terrifying Encryption Story #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/simple-and-terrifying-encryption-story

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles