PDA

View Full Version : could we lock the CD


white sky
03-25-2007, 10:44 PM
hello all
please i have Q
How can I lock the CD after I build it as data CD because I dont want people to access into the CD.
Is that clear or i should attache some pic
Thanks

bobbie
03-25-2007, 11:15 PM
Can't. sorry.

Protocol
03-26-2007, 02:12 PM
Technically, Bobbie is correct, but there are always work-arounds. What do you want the "cleared user" to see and what do you want the "uncleared user" not to see?

We might be able to come up with something for ya...


Protocol

white sky
03-28-2007, 01:17 AM
Protocol
I want to lock "CD_Root" file or Protect it by buting password from evreyone
i know there is a program that can make this task but i cant find it:eek:

gurudict
03-29-2007, 08:49 AM
WHITE SKY you can definitely lock your cd. Just paste the following code on your first page: Preload of your program.


-- the 'correct' password
real_password = "password";
-- prompt the user to enter a password
user_password = Dialog.PasswordInput("Password", "Please enter the password: ", MB_ICONQUESTION);
-- compare the user's password to the 'correct' password.
-- If the user supplies the wrong password, exit the program.
if real_password ~= user_password then
Dialog.Message("Incorrect Password", "Incorrect password.", MB_OK, MB_ICONEXCLAMATION);
Application.Exit(0);
end

publish the program or burn it into a cd and bingo you're done. whenever the program is opened it will ask for the password. If correct password is entered the program will run, else it will exit.

give thanx to RizlaUK and NALS as i have learned from them

Protocol
03-29-2007, 09:42 AM
Yup yup...

There are a lot of fun ways to lock the program. In fact, you can add not only a password, but a number of attempts at that password or conditions such as the date on which the CD can be used, if they have a particcular program or file on their computer, or an internet check to see if you currently want the CD to be used (something you set on your side wherein users can only access the contents if you set a condition true on a server) or even a combitnation of such things.

Lots of cool ways to lock the usage of the CD...

=)

Have fun!

RizlaUK
03-29-2007, 09:42 AM
im afraid that code will only work if you make a web exe, and if your target media is a cd rom id guess its rather large in size, this would make it have a long loading/unpacking time


if you want to secure your files on a cd rom the only way i see is to encrypt the whole project, file by file, and have ams decrypt the files as it needs them

i saw some software "SoftwareKey Protection Plus" but it cost just as much as ams dose, i think any such software is a waist of money as ams can do the job

if the files on your cd are encrypted then thay are useless to anyone browsing the cd, only the ams executable will have the password to decrypt them

nals
03-29-2007, 06:03 PM
Thats interesting RizlaUK, thats what I wanted to do too, but ..
Is it posible to give us little tip how to do it? I mean just a little code.
:rolleyes

RizlaUK
03-29-2007, 08:30 PM
ok nals, i made this little example for you,

In the docs directory there are 2 encrypted files, click the info button and the file will be decrypted and the contents will be displayed in the paragraph object below the buttons

click the install button and it will decrypt a install package and run it

all the code is in the buttons

for this example i used my encryption tool to encrypt the files, just make sure you use the same password to decrypt as you did encrypt the blowfish files

nals
03-29-2007, 09:26 PM
Thanks for your sample, RizlaUK , I know I m asking too much...

Well this Is Decripting an Exe file and try to install rite? thats the file: file2.txt

and there is another file : file1.txt ? what is it for?

How do you Encript a file? Is that the same way? Crypto.BlowfishEncryptString ??

:huh

RizlaUK
03-29-2007, 09:59 PM
file1.txt contains the text that is dispalyed in the paragraph object when you click the info button

file2.txt is the install package

file1.txt, is encrypted with blowfish

file2.txt is encoded with base64 first then encrypted with blowfish

and yes, to encrypt a file you use Crypto.BlowfishEncryptString or Crypto.BlowfishEncryptFile

basicly my tool is a GUI for the ams crypto functions, for use when useing encrypted files in a project

nals
03-29-2007, 10:11 PM
Great !!!

Thanks rizlaUK ,
:yes

white sky
03-29-2007, 10:19 PM
gurudict
thank you
but I dont want to lock the "exe" I want to lock the all file http://www.indigorose.com/forums/attachment.php?attachmentid=4626&stc=1&d=1175224126

rhosk
03-30-2007, 04:57 AM
gurudict
thank you
but I dont want to lock the "exe" I want to lock the all file http://www.indigorose.com/forums/attachment.php?attachmentid=4626&stc=1&d=1175224126

Simply cannot be done.