TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Eric
NA
1
0
image encryption, need help!!
Mar 31 2006 11:24 AM
Hello, I am having a hard time encrypting a tiff image. If anyone can share any insight into this matter, i would appreciate it.
Here is my encrypt method...
private
byte
[] Encrypt(
byte
[] bytes)
{
key =
new
byte
[8];
iv =
new
byte
[8];
for
(
int
x = 0; x < 8; x++)
{
key[x] = Convert.ToByte(textBox3.Text[x]);
iv[x] = Convert.ToByte(textBox4.Text[x]);
}
DESCryptoServiceProvider cryptProvider =
new
DESCryptoServiceProvider();
ICryptoTransform transform = cryptProvider.CreateEncryptor(key, iv);
MemoryStream ms =
new
MemoryStream();
CryptoStream cs =
new
CryptoStream(ms, transform, CryptoStreamMode.Write);
cs.Write(bytes, 0, bytes.Length);
cs.FlushFinalBlock();
ms.Flush();
return
(ms.GetBuffer());
}
Reply
Answers (
0
)
Changing background color of individual datagrid cells
Combo box for a datagrid cell