Why does a bad password cause “Padding is invalid and cannot be removed”?

前端 未结 9 1565
醉酒成梦
醉酒成梦 2020-11-29 07:24

I needed some simple string encryption, so I wrote the following code (with a great deal of \"inspiration\" from here):

    // create and initialize a crypto         


        
9条回答
  •  死守一世寂寞
    2020-11-29 07:53

    Yes, this is to be expected, or at least, its exactly what happens when our crypto routines get non-decryptable data

提交回复
热议问题