forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


encrypt with a key, data access and invisible

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Jun 22, 2003 10:31 am    Post subject: encrypt with a key, data access and invisible Reply with quote

Hi,

i would like to mention 4 wishes i would like in a near (?) future version of vds:

- the @ENCRYPT function to accept keys...anyone with vds can access any encrypted data used with the @ENCRYPT function...not good Sad

- for files to be inacessible if they are "used" by a given vds program...i know that visualbasic has that facility and i would love to see that too...or even to be able to specify which vds program can access a given data file so that only that vds program can access that data file

- for programs to optionally not be listed in the tasklist ie. run them "invisibly"...like the feature offered by prot.dll

- to be able to create totally invisible folders and files...not just using the H attribute but totally invisible like some programs can do

Serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Jun 22, 2003 10:46 am    Post subject: Re: encrypt with a key, data access and invisible Reply with quote

Serge wrote:
- the @ENCRYPT function to accept keys...anyone with vds can access any encrypted data used with the @ENCRYPT function...not good Sad


Just adding on the @ENCRYPT() wish... perhaps it could be done like in
PHP where you can choose multiple algorithms from ones such as:

Quote:
CRYPT_STD_DES - Standard DES-based encryption
CRYPT_EXT_DES - Extended DES-based encryption
CRYPT_MD5 - MD5 encryption
CRYPT_BLOWFISH - Blowfish encryption


So the function could be laid out as so:

Code:
%A = "String to be encrypted"
%B = "passkey"
%C = @ENCRYPT(%A,%B,CRYPT_STD_DES)


And maybe you could even add in initialization vectors! Very Happy

I think this function could really go places and could be extremely
convenient and useful! Very Happy

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Jun 22, 2003 10:48 am    Post subject: Reply with quote

Oh yes, I forgot to mention that I agree with the rest of Serge's ideas...
But the encryption one would probably be the easiest to implement. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
X-Tools
Valued Contributor
Valued Contributor


Joined: 20 Sep 2001
Posts: 296
Location: Germany

PostPosted: Sun Jun 22, 2003 11:29 am    Post subject: Encrypt Reply with quote

Hi,

you can also use vdscrypt.dll which allows blowfish, twofish and des.
there you can define the initialization vector for encrypting data.
i will upload a new version compatible to vds5 tomorrow.

bye, fabian
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Sun Jun 22, 2003 12:07 pm    Post subject: Reply with quote

For the encryption stuff: you could write your own .dsu file which can do this. Wink There are lots of examples on this forum, so it won't be that hard.
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sun Jun 22, 2003 12:16 pm    Post subject: Reply with quote

I don't really know anything about algorithms. All I know is that it would
be nice to have it directly accessible from the IDE. Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Mon Jun 23, 2003 8:37 am    Post subject: Reply with quote

thanks for all your replies...i already use blowfish.dll...i just thought that to have encryption native to vds through @ENCRYPT having the option of using your own keys would be a fantastic addition + my concern about how secure @ENCRYPT really is given that anyone running vds 5 could have access to encrypted data/passwords/...

Serge

ps FF...sorry about the sudden end to our chat...my isp allows me 2 hours between 6-11pm and my time had run out...hence the sudden disconnection

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Mon Jun 23, 2003 8:42 pm    Post subject: Reply with quote

Serge wrote:
ps FF...sorry about the sudden end to our chat...my isp allows me 2 hours between 6-11pm and my time had run out...hence the sudden disconnection


It's okay Wink

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Jun 25, 2003 4:05 pm    Post subject: Re: encrypt with a key, data access and invisible Reply with quote

Serge wrote:
- for programs to optionally not be listed in the tasklist ie. run them "invisibly"...like the feature offered by prot.dll

- to be able to create totally invisible folders and files...not just using the H attribute but totally invisible like some programs can do

Serge


Hi Serge,
What kind of programs are you making? It sounds like you want a stealth program. Anyway these things can be done with the Win32 API. The Win32 function to hide your app from the Tasklist is 'RegisterServiceProcess' in kernel32.dll... Here is some VDS 5 code that should work for ya.

Code:
# This will only work under Win9x and ME
If @Sysinfo(ISNT)
  Warn Sorry this will not run under a NT system@CR()For NT systems you must make a NT service.@CR()There are services out there that can run your Exe as a service for NT.
Else
  LoadLib kernel32.dll
  %A = @lib(kernel32,GetCurrentProcessId,INT:)
  %B = @lib(kernel32,RegisterServiceProcess,INT:,INT:%A,INT:1)
  wait 25
  %B = @lib(kernel32,RegisterServiceProcess,INT:,INT:%A,INT:0)
  wait 25
End
exit


I have not had a chance to test the code above because I don't have Win9x here at work. So please let me know if it works. As for hiding a file or folder you would have to build a systemwide shell hook that can hook into explorer's window and locate the file or folder that you don't want shown and tell Explorer to ignore that. This is a lot of coding. Either way these items are not really something that a language should have built into it. I don't know of any language that has this sort of stuff built directly in the language. You usually have to write it yourself or depend on some external program to do this for you.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Wed Jun 25, 2003 8:50 pm    Post subject: Re: encrypt with a key, data access and invisible Reply with quote

mindpower wrote:
Code:
# This will only work under Win9x and ME
If @Sysinfo(ISNT)
  Warn Sorry this will not run under a NT system@CR()For NT systems you must make a NT service.@CR()There are services out there that can run your Exe as a service for NT.
Else
  LoadLib kernel32.dll
  %A = @lib(kernel32,GetCurrentProcessId,INT:)
  %B = @lib(kernel32,RegisterServiceProcess,INT:,INT:%A,INT:1)
  wait 25
  %B = @lib(kernel32,RegisterServiceProcess,INT:,INT:%A,INT:0)
  wait 25
End
exit


I have not had a chance to test the code above because I don't have Win9x here at work. So please let me know if it works ...


I am not an expert in this area, but in your code shouldn't you use FREELIB
in your code so it won't crash?

Also could this line be used to obtain the process ID of your application?

Code:
LoadLib kernel32.dll
  %A = @lib(kernel32,GetCurrentProcessId,INT:)

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Wed Jun 25, 2003 9:37 pm    Post subject: Reply with quote

You should only need to use FREELIB if you plan on deleting the DLL, since you can't delete it if it's loaded in memory.
System DLL's are always loaded so you can let it free when your program's process ends.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Jun 25, 2003 10:46 pm    Post subject: Re: encrypt with a key, data access and invisible Reply with quote

FreezingFire wrote:
I am not an expert in this area, but in your code shouldn't you use FREELIB
in your code so it won't crash?

Also could this line be used to obtain the process ID of your application?

Code:
LoadLib kernel32.dll
  %A = @lib(kernel32,GetCurrentProcessId,INT:)


Sorry All,
I forgot to free the library Embarassed . Yes you should free the library. Will that crash the system? I doubt it but it is possible to cause the system to hang when it is shutting down. Yes you can use the GetCurrentProcessId to get the process ID of your running application.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Thu Jun 26, 2003 1:07 pm    Post subject: Reply with quote

thanks for that mindpower...i will check your code idea when i have a moment...yes i have a program that i want to run in stealth mode as an option and i could really use hiding it from the taskmanager and hiding the data files it generates

thanks for the feedback on hiding folders too...i assumed that this would be easy to do in delphi and hence to implement into vds Embarassed

Serge

ps i am running win 98 so i'll be able to check your code idea

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group