Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Encrypt a text file?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
George Petasis  
View profile  
 More options Oct 6 2012, 3:53 am
Newsgroups: comp.lang.tcl
From: George Petasis <petas...@yahoo.gr>
Date: Sat, 06 Oct 2012 10:53:52 +0300
Local: Sat, Oct 6 2012 3:53 am
Subject: Encrypt a text file?
Hi all,

I have a small product in tcl, and I want to somehow "obfuscate" the
data files it uses (txt files). For the tcl code I am going to use
ActiveState's TDK.

Is there an extension that will allow me to obfuscate/encrypt a text file?

George


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
George Petasis  
View profile  
 More options Oct 6 2012, 4:38 am
Newsgroups: comp.lang.tcl
From: George Petasis <petas...@yahoo.gr>
Date: Sat, 06 Oct 2012 11:38:30 +0300
Local: Sat, Oct 6 2012 4:38 am
Subject: Re: Encrypt a text file?
Στις 6/10/2012 10:53 πμ, ο/η George Petasis έγραψε:

> Hi all,

> I have a small product in tcl, and I want to somehow "obfuscate" the
> data files it uses (txt files). For the tcl code I am going to use
> ActiveState's TDK.

> Is there an extension that will allow me to obfuscate/encrypt a text file?

> George

I am puzzled by the tcllib's package tcl::transform::otp:
http://docs.activestate.com/activetcl/8.6/tcllib/virtchannel_transfor...

Is this something that can be used in practice, or an exercise like
tcl::transform::rot?

George


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Gollwitzer  
View profile  
 More options Oct 6 2012, 5:38 am
Newsgroups: comp.lang.tcl
From: Christian Gollwitzer <aurio...@gmx.de>
Date: Sat, 06 Oct 2012 11:38:22 +0200
Local: Sat, Oct 6 2012 5:38 am
Subject: Re: Encrypt a text file?
Hi George,

Am 06.10.12 09:53, schrieb George Petasis:

> I have a small product in tcl, and I want to somehow "obfuscate" the
> data files it uses (txt files). For the tcl code I am going to use
> ActiveState's TDK.

> Is there an extension that will allow me to obfuscate/encrypt a text file?

why do you want to obfuscate the data files? Is it only to keep a casual
user from inspecting it, or do you want to achieve some security?

If the first case, I recommend the approach used by OO, Word and many
other commercial packages: Create a zip file, e.g. using

http://wiki.tcl.tk/15158

and just store it with a file name other than .zip. This has the big
advantage, that on request from the users, you can simply unzip this
file and inspect it without any hassle.

ZIP also supports simple encryption, but this is not handled by the code
on the wiki. The additional benefit of ZIP is that you can store more
complex documents as logical folders.

        Christian

PS: Last time I checked, mkzip on the wiki had some bug that prevented
file names with spaces. I should check the patched version in our
commercial software to update the wiki


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
George Petasis  
View profile  
 More options Oct 6 2012, 6:34 am
Newsgroups: comp.lang.tcl
From: George Petasis <petas...@yahoo.gr>
Date: Sat, 06 Oct 2012 13:34:56 +0300
Local: Sat, Oct 6 2012 6:34 am
Subject: Re: Encrypt a text file?
Dear Christian,

The user of the product is a computer engineer. Just opening it in a
text editor, the fact that it is a zip file will show. And then it will
be easy to get the contents.

The text files contain an electronic dictionary, and I want to protect this.

George

Στις 6/10/2012 12:38 μμ, ο/η Christian Gollwitzer έγραψε:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Gollwitzer  
View profile  
 More options Oct 6 2012, 6:48 am
Newsgroups: comp.lang.tcl
From: Christian Gollwitzer <aurio...@gmx.de>
Date: Sat, 06 Oct 2012 12:48:45 +0200
Local: Sat, Oct 6 2012 6:48 am
Subject: Re: Encrypt a text file?
Hi George,

Am 06.10.12 12:34, schrieb George Petasis:

> The user of the product is a computer engineer. Just opening it in a
> text editor, the fact that it is a zip file will show. And then it will
> be easy to get the contents.

> The text files contain an electronic dictionary, and I want to protect
> this.

So the files are constant data, and not the storage format of the data
created by the user?

I assume that you know that DRM can never be made secure enough to
protect an experienced hacker. One of the simplest attacks would be to
automate the programs GUI.

Having said that, you should at least use a well-tested strong
cryptoalgorithm, like AES (which is in tcllib), with a random key such
that simple inspection of the "compiled" program using strings and such
does not reveal the key.

You can/should also store constant data inside the VFS of the starpack,
to obfuscate which part of the program contains the interesting data.

        Christian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Donal K. Fellows  
View profile  
 More options Oct 7 2012, 11:17 am
Newsgroups: comp.lang.tcl
From: "Donal K. Fellows" <donal.k.fell...@manchester.ac.uk>
Date: Sun, 07 Oct 2012 16:17:00 +0100
Subject: Re: Encrypt a text file?
On 06/10/2012 11:34, George Petasis wrote:

> The user of the product is a computer engineer. Just opening it in a
> text editor, the fact that it is a zip file will show. And then it will
> be easy to get the contents.

> The text files contain an electronic dictionary, and I want to protect
> this.

It's difficult to protect in this case. The simplest method is to not
actually give them the data, but instead give them a service that they
have to authenticate to in order to use. You can host the service on
your own hardware (or in the cloud or wherever) and keep the overall
dataset safe, and the main worry then becomes one of billing. ;-) The
downside is that it means that the dictionary isn't usable offline, but
putting up a service is much less obnoxious than DRM, and far easier to do.

Donal.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
George Petasis  
View profile  
 More options Oct 7 2012, 2:49 pm
Newsgroups: comp.lang.tcl
From: George Petasis <petas...@yahoo.gr>
Date: Sun, 07 Oct 2012 21:49:32 +0300
Local: Sun, Oct 7 2012 2:49 pm
Subject: Re: Encrypt a text file?
Στις 7/10/2012 6:17 μμ, ο/η Donal K. Fellows έγραψε:

The customer already uses a web service. The problem is that I have to
ship my machine to his premises :D

George


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DrS  
View profile  
 More options Oct 7 2012, 11:02 pm
Newsgroups: comp.lang.tcl
From: DrS <drscr...@gmail.com>
Date: Sun, 07 Oct 2012 23:02:09 -0400
Local: Sun, Oct 7 2012 11:02 pm
Subject: Re: Encrypt a text file?
On 10/7/2012 2:49 PM, George Petasis wrote:

> The customer already uses a web service. The problem is that I have to
> ship my machine to his premises :D

Machines I am not so sure of but there are several packages in tcllib
that do encryption.  This page may be a good start:
http://wiki.tcl.tk/2198 .  As others have stated, the best is a simple
obfuscation to protect from casual users.  For that, a simple base64
encode/decode may be more than sufficient.

DrS


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »