Write a program similar to the one shown in the following screenshot to encrypt and decrypt strings:
To do that, write an extension method that encrypts a string and returns a byte array. Write a second method that decrypts a byte array and returns the original string. To make it easier to display the values in a byte array, write extension methods that convert between byte arrays and hexadecimal strings.
To make this easier, write a method that encrypts or decrypts a byte array into another byte array. You may also want to create helper methods: FindKeySize, MakeKeyAndIV, and MakeCryptoTransform.