Wrox Programmer Forums
|
VB.NET General VB.NET discussions for issues that don't fall into other VB.NET forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 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 May 7th, 2004, 09:07 AM
Authorized User
 
Join Date: Jun 2003
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default Encrypt Image

Hi

I am looking for a way to encrpt jpg images

Nickie
 
Old May 7th, 2004, 10:41 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Did you try google?

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old May 9th, 2004, 11:38 AM
Authorized User
 
Join Date: Jun 2003
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yep, I've been trawling through google searches for a couple of days and I found loads of info on encryption but all seems to only work with txt, xml, etc files. I'm having no luck with trying to encrypt/decrypt jpg's.

I'm looking at reading the image in to a byte array using filestream and adding a key word to the start and saving, which will be the encryped file. Although its not really working at the moment but i'm still working on it.

Any other ideas would be appreciated.

Cheers
 
Old May 10th, 2004, 09:20 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I have no idea- I never tried to encypt images. Which is why I suggested google.. that's what I would use if I needed to find out :)


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old May 12th, 2004, 09:25 AM
Authorized User
 
Join Date: Jun 2003
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Found a way to do this and if your interested heres how -

Read the Image into a filestream
Read the bloc of bytes from the filestream into a byte buffer
Loop round the byte array and insert a dummy byte every 10th byte

Do the opposite to decrypt.

Cheers

Nickie
 
Old May 18th, 2004, 11:02 PM
Registered User
 
Join Date: May 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to tianlang
Default

I agree with nbryson

 
Old January 14th, 2005, 05:03 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try Secure Image from Artistscope.
There are limitations but it is really cleverly done.

 
Old January 14th, 2005, 05:05 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 245
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To nbryson,
Is there an example somewhere about the technique you recommended (Read the Image into a filestream
Read the bloc of bytes from the filestream into a byte buffer
Loop round the byte array and insert a dummy byte every 10th byte)? I am a beginner in VB.NET and i have never worked with bloc of bytes.
Thanks.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypt Data Brendan Bartley Access 2 April 29th, 2008 08:30 AM
encrypt and decrypt fuadlutfi85 Pro JSP 0 July 5th, 2007 09:00 PM
Encrypt Image Files? savan_thakkar C# 1 January 4th, 2007 04:36 PM
encrypt database skajani ASP.NET 1.0 and 1.1 Professional 1 August 7th, 2006 02:48 PM
About Column Encrypt jabby SQL Server 2000 2 November 30th, 2004 11:57 AM





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