Tag Archives: string extensions

Make string extensions to URL encode and decode strings in C#

When you URL encode a string, you convert special characters into numeric sequences thath are safe to use in a URL. When you URL decode a string, you reverse the process. The following code creates extension methods for the string … Continue reading

Posted in extension methods, extensions, strings | Tagged , , , , , , , , , , | Leave a comment

Use the .NET cryptography library to make extension methods that encrypt and decrypt strings in C#

This example uses the .NET cryptography library to make extension methods that make encrypting and decrypting strings easier. The .NET cryptography methods work most naturally with streams or byte arrays, not strings. To make working with strings easier, this program … Continue reading

Posted in algorithms, cryptography, extension methods, mathematics | Tagged , , , , , , , , , , , , , , , | 2 Comments