| View previous topic :: View next topic |
| Author |
Message |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Sun Jun 22, 2003 10:31 am Post subject: encrypt with a key, data access and invisible |
|
|
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
- 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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jun 22, 2003 10:46 am Post subject: Re: encrypt with a key, data access and invisible |
|
|
| Serge wrote: | - the @ENCRYPT function to accept keys...anyone with vds can access any encrypted data used with the @ENCRYPT function...not good |
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!
I think this function could really go places and could be extremely
convenient and useful!  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jun 22, 2003 10:48 am Post subject: |
|
|
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.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Sun Jun 22, 2003 11:29 am Post subject: Encrypt |
|
|
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 |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sun Jun 22, 2003 12:16 pm Post subject: |
|
|
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.  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Mon Jun 23, 2003 8:37 am Post subject: |
|
|
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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Mon Jun 23, 2003 8:42 pm Post subject: |
|
|
| 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  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Jun 25, 2003 4:05 pm Post subject: Re: encrypt with a key, data access and invisible |
|
|
| 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 |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Wed Jun 25, 2003 8:50 pm Post subject: Re: encrypt with a key, data access and invisible |
|
|
| 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 |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Wed Jun 25, 2003 9:37 pm Post subject: |
|
|
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 |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Jun 25, 2003 10:46 pm Post subject: Re: encrypt with a key, data access and invisible |
|
|
| 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 . 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 |
|
 |
Serge Professional Member


Joined: 04 Mar 2002 Posts: 1480 Location: Australia
|
Posted: Thu Jun 26, 2003 1:07 pm Post subject: |
|
|
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
Serge
ps i am running win 98 so i'll be able to check your code idea _________________
|
|
| Back to top |
|
 |
|