Encrypt string with Bouncy Castle AES/CBC/PKCS7
问题 I have been looking everywhere for some sample code on how to encrypt a simple string with the encryption in the title using the Bouncy Castle Framework. This code will run on a Windows Universal project. My previous attempts to encrypt using the build in API's failed to decrypt on the server. I tried this: which gives me a string like: 4pQUfomwVVsl68oQqWoWYNRmRM+Cp+vNFXBNdkN6dZPQ34VZ35vsKn9Q7QGTDVOj+w5mqVYHnGuAOFOgdgl8kA== s = String.Format("{0}_{1}", s, DateTime.Now.ToString("ddMMyyyyHmmss"