Search found 8 matches

by agent
Wed Apr 30, 2008 6:49 pm
Forum: Coding Questions
Topic: Resetting System-Idle-Timer to prevent Screensaver
Replies: 8
Views: 2059

Hi at all.

*lol* I really know how to switch my screensaver on and off.

I need this procedure for my backup tool. One of my users got a problem, while a backup is running. If the screensaver turns on (with password activated), the backup stops. After entering the backup will continue. This is ...
by agent
Wed Apr 30, 2008 3:22 pm
Forum: Coding Questions
Topic: Resetting System-Idle-Timer to prevent Screensaver
Replies: 8
Views: 2059

Resetting System-Idle-Timer to prevent Screensaver

Hi there.

Does anyone knows how to prevent the sleep mode or screensaver while a program is running?

On MSDN I found this: http://msdn.microsoft.com/en-us/library/aa373208(VS.85).aspx .

I thought: Thats it. But it won't work. PB won't accept the API-Command.

Here is my testcode:

Procedure SK ...
by agent
Tue Apr 22, 2008 12:22 pm
Forum: Announcement
Topic: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib
Replies: 83
Views: 50443

Hm....

But if you have a AES256 crypted file. Generated by anyone. How will you decrypt it without knowing the length?

For my work I can solve this by saving the length for any crypted string or setting the length to a virtual value like 1024 (the max lenght I would crypt ;) ) This works fine too ...
by agent
Tue Apr 22, 2008 11:57 am
Forum: Announcement
Topic: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib
Replies: 83
Views: 50443

Maybe it is easier to understand if I copy the code:

In your AES.pbi you show an example using

Code: Select all

AESDecrypt(@out,@dec,neededlength,"testpasasdfsdfasfasdfasdfs",#PureAES_CypherMode_256)
My question is:
How can I know the "neededlength" if I did not crypt the text?
by agent
Tue Apr 22, 2008 11:42 am
Forum: Announcement
Topic: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib
Replies: 83
Views: 50443

Hi Inf0Byt3.

Thanks for you lib.
Works fine for me.

But I have one question left:
In your example, you decrypt a string you crypted before. To decrypt, you need the "neededlength" witch was calculated befor crypting the string.

If you just want (or later want) to decrypt a AES-crypted string, you ...
by agent
Wed Apr 16, 2008 10:21 pm
Forum: Announcement
Topic: RSA 2048, Blowfish, Rijndael, Whirlpool PureLib
Replies: 83
Views: 50443

Hi there.

First, big thanks to JCV for the great libs.

It would be very nice to have a example for the AES. I need to crypt strings. An example is missing ... :roll:

Can someone code one?
by agent
Fri Apr 04, 2008 2:34 pm
Forum: Coding Questions
Topic: Changing date of a directory
Replies: 1
Views: 900

Changing date of a directory

Hi out there.

Does anybody knows how to change the date of a directory, like the SetFileDate() does with files?

If I create a directory using CreateDirectory() it always has the date of creation. I need to change this.

May someone help me?
by agent
Wed Mar 15, 2006 3:22 pm
Forum: Coding Questions
Topic: Monitoring a directory for new files being added
Replies: 56
Views: 38202

@Sparkie

Really nice code. But if there is a change or modification in a subdirectory, your code won't work, right? So you can't watch C:\ (including subdirs)...