"“padding is invalid and cannot be removed” -whats wrong with this code?" Code Answer

5

you need to set the blocksize and the keysize before you set the key and the iv. additionally you should probably be generating a random iv for each message and note that icryptotransform implements idisposable so these objects should be disposed.

By wasmup on February 1 2022

Answers related to ““padding is invalid and cannot be removed” -whats wrong with this code?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.