Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 4th, 2007, 03:25 PM
Authorized User
 
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to savan_thakkar Send a message via Yahoo to savan_thakkar
Default Encrypt Image Files?

Hi all,

I need to encrypt image files and convert the extension to something else like .dat, so that noone can see the image directly.Only my software should be used to view images.

How to encrypt and decrypt image file??

Thanks in advance,
Savan Thakkar.

Savan
__________________
Savan
 
Old January 4th, 2007, 04:36 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

You could transform the image file into a byte stream, encrypt that byte stream, and then write out a .DAT file. To view the image you would just run the process in reverse, open the dat file, unencrypt the data and save the file back out as a .jpg or whatever.



-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature





Similar Threads
Thread Thread Starter Forum Replies Last Post
encrypt and decrypt fuadlutfi85 Pro JSP 0 July 5th, 2007 09:00 PM
Need help password encrypt flyfish SQL Server 2000 9 July 12th, 2005 01:23 PM
Encrypt Image nbryson VB.NET 7 January 14th, 2005 05:05 AM
deny downloading image files. jojys Javascript How-To 1 October 19th, 2004 03:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.