ByteCryptor for .NET

Provides tools for asymmetric encryption and digitally signing data.

Download

VersionDescription 
1.0.0.3 C# Source Code & Visual Studio 2010 Project Download

Example

// C# sample usage of ByteCryptor using 128 bit AES with MD5 validation key
StreamWriter writer = New StreamWriter("c:\\secret_message.txt");
String payload = "My Secret Message";
Byte[] key = System.Text.UTF8Encoding.UTF8.GetBytes("1234567890123456");
Byte[] vkey = System.Text.UTF8Encoding.UTF8.GetBytes("1234567890999999");
ByteCryptor cryptor = New ByteCryptor(System.Security.Cryptography.Aes.Create(), HashType.MD5);

Byte[] output = bc1.SignAndEncrypt(System.Text.UTF8Encoding.UTF8.GetBytes(payload) key, vkey);

writer.WriteLine(Convert.ToBase64String(output));
writer.Close();

License

Copyright 2011 Justin R. Buchanan.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

JustIn.Security.Cryptography, Copyright © 2011 by Justin R. Buchanan