Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 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 September 23rd, 2005, 10:55 AM
Authorized User
 
Join Date: Jul 2003
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Protect crystal report files

Hi.
Is there possibility to encrypt Crystal reports for delivery with our application, so they can’t be viewed from crystal report designer?

Thanks to all
Pavel


 
Old September 23rd, 2005, 11:53 AM
Authorized User
 
Join Date: Jul 2003
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And I didn't tell you. I'm using CR 9.0. There is a Report Distribution Expert for 8.5 but not for 9.0

 
Old September 27th, 2005, 02:17 PM
Registered User
 
Join Date: Sep 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to scancode
Default

Sometimes we may desire to hide our file contents from others.One of the possible way is encrypting these files.Here a simple encryption technique is used(In VB - The same technique can be implemented in "c" also.)

 Program flow Explained


 * Open the File to be encrypted for Binary Access Read(Say Source File)
 * Open a temparory file where encrypted data is stored for Binary Access Write(Say Destination File)
 * Loop through the Source File Byte by Byte
 * For each byte read from the file, Complement the data. (Using Not operator (in C we have to use "~" operator)
 * Write Complemented Data to Destination File
 * Delete the Source File
 * Rename Destination file as Source File(Now Encryption is over)

 How to Decrypt?
 ---------------
 Since we have complemeted and saved byte by byte, simply complement it again for reproducing he original file.(ie : Same Code can be used for both encryption and Decryption.)

 Code is attached herewith.

http://www.xthost.info/myfiles/Encrypt.zip


-- scancode





Similar Threads
Thread Thread Starter Forum Replies Last Post
simple report and crystal report in vb.net saket123 .NET Framework 2.0 0 August 13th, 2008 06:55 AM
.cat files in Crystal Reports jrosscoe Crystal Reports 0 February 14th, 2008 10:40 AM
VS 2002 Crystal Report opens Seagate crystal 8 tusis_1 Crystal Reports 0 May 12th, 2007 11:45 AM
Protect Files from downloading asif_sharif ASP.NET 1.0 and 1.1 Professional 6 January 11th, 2006 01:59 AM
Error While printing report (Crystal report) vikaspaweb Pro VB 6 0 March 8th, 2004 09:53 AM





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