i chaned Droopy's code to work well with username and password and with other protocol (ftp, http, https, ...) :
#INTERNET_OPEN_TYPE_DIRECT = 1
#INTERNET_INVALID_PORT_NUMBER = 0 ; use the protocol-specific Default
#INTERNET_DEFAULT_FTP_PORT = 21 ; Default For FTP servers
#INTERNET_DEFAULT ...
Search found 9 matches
- Sat May 28, 2011 6:02 am
- Forum: Coding Questions
- Topic: InetgetSize Autoit
- Replies: 5
- Views: 1978
- Fri May 27, 2011 9:25 pm
- Forum: Coding Questions
- Topic: InetgetSize Autoit
- Replies: 5
- Views: 1978
Re: InetgetSize Autoit
Hi,
what kind of authentication?
For the basic method, you need only to add the following Auth$ to the packet header: Auth$ = "user:password"
enc$ = Space(40)
Base64Encoder(@Auth$, StringByteLength(Auth$), @enc$, 40)
Auth$ = "Authorization: Basic " + enc$ Bernd
Hi Bernd,
authentication such as ...
what kind of authentication?
For the basic method, you need only to add the following Auth$ to the packet header: Auth$ = "user:password"
enc$ = Space(40)
Base64Encoder(@Auth$, StringByteLength(Auth$), @enc$, 40)
Auth$ = "Authorization: Basic " + enc$ Bernd
Hi Bernd,
authentication such as ...
- Fri May 27, 2011 8:08 pm
- Forum: Coding Questions
- Topic: InetgetSize Autoit
- Replies: 5
- Views: 1978
InetgetSize Autoit
Hi all,
I been looking through the libraries of pure basic and only to find receivehttpfile, when I look into Autoit I saw this syntax called InetgetSize. I been wondering how come purebasic does not have a complete network library where I will be able to use such a function.
http://www ...
I been looking through the libraries of pure basic and only to find receivehttpfile, when I look into Autoit I saw this syntax called InetgetSize. I been wondering how come purebasic does not have a complete network library where I will be able to use such a function.
http://www ...
- Wed Aug 18, 2010 2:38 pm
- Forum: Tricks 'n' Tips
- Topic: AES streaming file encoder/decoder
- Replies: 16
- Views: 9142
Re: AES streaming file encoder/decoder
For storing memory content that might contain null bytes, I recommend my function PeekHexBytes . 8)
Or convert the respective memory area e.g. with Base64Encoder() , before storing its content in a string.
Regards, Little John
Hi John and netmaestro,
Thanks for the great help. In the end I use ...
Or convert the respective memory area e.g. with Base64Encoder() , before storing its content in a string.
Regards, Little John
Hi John and netmaestro,
Thanks for the great help. In the end I use ...
- Tue Aug 17, 2010 6:54 pm
- Forum: Tricks 'n' Tips
- Topic: AES streaming file encoder/decoder
- Replies: 16
- Views: 9142
Re: AES streaming file encoder/decoder
Hmm, beside PeekS what others can store encrypted strings especially with null and bytes...
I guess I have try every single one to see its effects.... no idea.... currently....
anyway thanks netmaestro for the tips up... I think I shall stop from here for a while...brain cannot think at 1:53am ...
I guess I have try every single one to see its effects.... no idea.... currently....
anyway thanks netmaestro for the tips up... I think I shall stop from here for a while...brain cannot think at 1:53am ...
- Tue Aug 17, 2010 5:35 pm
- Forum: Tricks 'n' Tips
- Topic: AES streaming file encoder/decoder
- Replies: 16
- Views: 9142
Re: AES streaming file encoder/decoder
data.prefs
[Directory]
path1=C:\xampplite\htdocs
path2=D:\xampplite\htdocs
[Settings]
directoryupdates= Yes
Demo.pb
Global emulateFile$,arraysizeI.i
Procedure.i startDataI(fileToCount$)
arraysizeI.i=0
If FileSize(fileToCount$)=-1
ProcedureReturn #False
Else
If ReadFile(1, fileToCount ...
[Directory]
path1=C:\xampplite\htdocs
path2=D:\xampplite\htdocs
[Settings]
directoryupdates= Yes
Demo.pb
Global emulateFile$,arraysizeI.i
Procedure.i startDataI(fileToCount$)
arraysizeI.i=0
If FileSize(fileToCount$)=-1
ProcedureReturn #False
Else
If ReadFile(1, fileToCount ...
- Tue Aug 17, 2010 3:23 pm
- Forum: Tricks 'n' Tips
- Topic: AES streaming file encoder/decoder
- Replies: 16
- Views: 9142
Re: AES streaming file encoder/decoder
Thanks, I will try again. Using aesencoder and aesdecoder.
- Tue Aug 17, 2010 3:10 pm
- Forum: Tricks 'n' Tips
- Topic: AES streaming file encoder/decoder
- Replies: 16
- Views: 9142
Re: AES streaming file encoder/decoder
AddCipherBuffer(0, *secure, *raw, chunksize)
At this point the memory block at *raw is decrypted. I'm just writing it out to the fille. You could save the chunks to an array if you wanted to I guess. But if you were going to do that you might as well use AESDecoder() instead which doesn't do it ...
At this point the memory block at *raw is decrypted. I'm just writing it out to the fille. You could save the chunks to an array if you wanted to I guess. But if you were going to do that you might as well use AESDecoder() instead which doesn't do it ...
- Tue Aug 17, 2010 2:52 pm
- Forum: Tricks 'n' Tips
- Topic: AES streaming file encoder/decoder
- Replies: 16
- Views: 9142
Re: AES streaming file encoder/decoder
@netmaestro
Is it possible for an encrypted chunk to be decrypted in memory rather than saving to a file? I want to see if its possible to place it into an array after decrypting it.
This was taken from your source above
StartAESCipher(0, ?key, 256, ?iVector, #PB_Cipher_CBC|#PB_Cipher_Decode ...
Is it possible for an encrypted chunk to be decrypted in memory rather than saving to a file? I want to see if its possible to place it into an array after decrypting it.
This was taken from your source above
StartAESCipher(0, ?key, 256, ?iVector, #PB_Cipher_CBC|#PB_Cipher_Decode ...