C# Encryption DLL

DLL class libraries for creating and removing encryption in .Net applications





Download

Usage

This is a simple library written in C# to work with encryption in .Net applications.

This is a very simple script to use. First, add the reference to your project. Then create an instance of the class CryptService (making using the correct namespace) and call the method, passing the desired parameter provider (see enum CryptProvider).

FYI: The comments in the code are all in Portuguese. Feel free to translate ;)

Encrypt

To encrypt a string:


CryptService crip = new CryptService(CryptProvider.DES);
crip.Key = "MY_KEY";
return crip.Encrypt(text);
                    

Decrypt

To remove encryption from a string:


CryptService crip = new CryptService(CryptProvider.DES);
crip.Key = "MY_KEY";
return crip.Decrypt(text);
                    

Authors and Contributors

In 2015, Vinícius Stutz (@vinicius-stutz) founded csharp.encryption (repository name on GitHub).

Support or Contact

Having trouble with csharp.encryption? Check out our wiki or issues and we’ll help you sort it out.

License

The MIT License (MIT)

Copyright (c) 2015 Vinícius Stutz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.