Search:

Type: Posts; User: couttsj

Page 1 of 13 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: [RESOLVED] get value from dropdown combobox in a web page

    View the web page as source, copy the information to the clipboard, paste it to Notepad, and save it as a text file. Delete "<OPTION VALUE=" by using the "Replace" option and save the results. This...
  2. Replies
    5
    Views
    1,538

    Re: InkEdit Control

    iwsteph;

    Windows updates do occasionally screw things up until they fix the oversights. The last update I had was KB5019961 on Nov. 8. Maybe I have something to look forward to.

    J.A. Coutts
  3. Re: vb6 compiler takes longer time on windows 10 than win7

    I have to agree. Win 11 is even worse. There is so much stuff running in the background that sometimes (and just sometimes) things slow down to a crawl. The worst one of all was the Microsoft Office...
  4. Replies
    10
    Views
    5,011

    Re: VB6 - Ink Editor

    Normally the .OCA file is just a shortcut created the first time the .OCX file is called. For example:
    2022-03-19 11:48 AM 13,312 NTSVC.oca
    1998-04-14 06:51 AM 34,304...
  5. Replies
    10
    Views
    5,011

    Re: VB6 - Ink Editor

    Works just fine for me on Win 11. I did not use the executables you provided because you should not have uploaded them in the first place.

    InkEd.dll
    File version 10.0.22000.556
    Date created ...
  6. Re: Base64 decoded string is different with different regional settings!

    I used the Base64 string you provided to create a binary file called Test.b64 and verified its contents. Then I ran the following command line:
    certutil -decode test.b64 test.bin

    Then I changed...
  7. Replies
    4
    Views
    449

    Re: Simple Get File

    Send me a PM with your email address and I will try and send it to you.

    J.A. Coutts
  8. Replies
    4
    Views
    449

    Re: Simple Get File

    It is considered an executable file and cannot be posted. I no longer have access to that domain, so it is up to you to activate the addon if you want to compile it....
  9. Replies
    4
    Views
    449

    Simple Get File

    Attached is a simplified encrypted file download Client/Server similar to:
    https://www.vbforums.com/showthread.php?897913-VB6-GetFile

    Whereas the original used full TLS 1.3 to establish the...
  10. Thread: resize jpg

    by couttsj
    Replies
    5
    Views
    326

    Re: resize jpg

    See:
    https://www.vbforums.com/showthread.php?892243-Image-Viewer

    J.A. Coutts
  11. Re: [RESOLVED] Problem with Static variable in DLL

    Don't know if it makes a difference or not, but it is not an ActiveX DLL. It is a standard DLL, which doesn't need to be registered and the entry points have to be declared.

    J.A. Coutts
    ...
  12. Re: Problem with Static variable in DLL

    Thank you for the responses. This problem arose when I attempted to move an encryption routine to a DLL. I included a Class because I thought that it might have a similar problem, but that is pure...
  13. [RESOLVED] Problem with Static variable in DLL

    Do Static variables work in DLLs and Classes? The reason I ask is that I declared a variable as Static in a DLL that was previously working well. When I use the DLL now, it crashes the .exe.

    J.A....
  14. Replies
    9
    Views
    756

    Re: Safer way to convert full ANSI strings

    What I am trying to get across is that for anyone who thinks that VB wide character strings handle all ANSI characters, they don't. They can only be counted on to retain ASCII characters. Characters...
  15. Replies
    9
    Views
    756

    Re: Safer way to convert full ANSI strings

    Previously I showed how the ANSII string "0123456789"
    30 31 32 33 34 35 36 37 38 39 83 84 85 86 87 88
    was stored in memory as:
    30 00 31 00 32 00 33 00 34 00 35 00 36 00 37 00
    38 00 39 00...
  16. Replies
    69
    Views
    1,678

    Re: Average age of people on this forum

    Gee, all these youngsters. The first computer I ever worked on was as big as a desk and ran on tubes. And all it did was multiple and divide. The first Basic I ever used was on a main frame, and the...
  17. Replies
    2
    Views
    272

    OpenSSL vulnerability

    wqweto;
    FYI, a potential vulnerability has been discovered in OpenSSL:
    https://www.openssl.org/news/secadv/20221101.txt
    Many buffer overflow issues that occur in C+ don't occur when converted to...
  18. Replies
    9
    Views
    756

    Re: Safer way to convert full ANSI strings

    As long as you use StrConv to convert to and from wide character strings, everything is fine. But if you want to send just the single byte characters (ANSI) to the other end, what you end up with is:...
  19. Replies
    7
    Views
    608

    Re: Where To Store Encryption Keys

    Protecting passwords is not easy, because they are so short. Even if you transfer the password with the worlds best encryption, it still does not stop the hacker from password guessing. That is why...
  20. Replies
    7
    Views
    608

    Re: Where To Store Encryption Keys

    Regardless of the extremes utilized to try and protect stored encryption keys, they are still vulnerable. Why not use ECC keys instead? The two connecting parties generate the Agreed Secret using...
  21. Thread: VB6 - GetFile

    by couttsj
    Replies
    17
    Views
    1,641

    Re: VB6 - GetFile

    Using a cutdown version of ChaCha20 (32 byte only) configured as a Class, I ran a few more tests. Using the loopback address on the compiled programs of the RC4 and ChaCha20 versions made no...
  22. Replies
    9
    Views
    756

    Safer way to convert full ANSI strings

    Thanks to wqweto, I found a faster and safer way to convert full ANSI strings to byte array.


    Option Explicit

    Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination...
  23. Re: [VB6/VBA] Pure VB6 implementation of ChaCha20-Poly1305 authenticated encryption

    That is exactly what I did. I just thought I might be missing something.

    J.A. Coutts
  24. Re: [VB6/VBA] Pure VB6 implementation of ChaCha20-Poly1305 authenticated encryption

    wqweto;
    I am having a little trouble understanding how to use the optional NCounter value in your CryptoChaCha20Init routine. Using the Test Vector #1 from Appendix A.2 of RFC 8439, I get the...
  25. Re: Winsock - how to handle closed socket

    The MS Winsock Control (MSWINSCK.OCX) utilizes wsock32.dll. Because this library does not support IPv6, I use my own routines (SimpleSock/SimpleServer), which utilise ws2_32.dll. The other major...
  26. Thread: VB6 - GetFile

    by couttsj
    Replies
    17
    Views
    1,641

    Re: VB6 - GetFile

    Those times are those required to send the records with a maximum size of 16,389 bytes over a local network, including the file read time. In the case of the RC4 and ChaCha20 compiled times, I am...
  27. Thread: VB6 - GetFile

    by couttsj
    Replies
    17
    Views
    1,641

    Re: VB6 - GetFile

    My own encryption routine turned out to be too slow. That is probably why I stopped working on it. So then I tried ChaCha20. In the IDE, it was also relatively slow, but not compiled. Using a 1.6 MB...
  28. Re: Windows 10 Enterprise: Missing mswinsck.ocx

    You can always verify the source of your file by checking the hash. The SHA256 hash for MSWINSCK.OCX should be:

    80 AB 0B 86 DE 58 A6 57 95 6B 2A 29 3B D9 95 7F
    78 E3 7E 73 83 C8 6D 6C D1 42 20...
  29. Thread: VB6 - GetFile

    by couttsj
    Replies
    17
    Views
    1,641

    Re: VB6 - GetFile

    wqweto;

    I came up with this encryption routine several years ago and incorporated it into a DLL. Being a DLL, it was very easy to test in this application, and it worked like a charm.

    ...
  30. Thread: VB6 - GetFile

    by couttsj
    Replies
    17
    Views
    1,641

    Re: VB6 - GetFile

    Thanks wqweto;
    I will have a look at it.

    J.A. Coutts
  31. Re: can you show me your way sending list1 to exe2 list1

    Much of your code is unnecessary. When the server is in the listening mode, the client can connect and send the first record automatically.


    Option Explicit

    Private Sub Command2_Click()
    ...
  32. Re: Use a third-party encrypt-lib (e.g. RC5.Crypt) or use your own encrypt-algorithm?

    See;
    https://www.vbforums.com/showthread.php?856681-VB6-Simple-Hash-Program

    J.A. Coutts
  33. Re: can you show me your way sending list1 to exe2 list1

    In this application:
    https://www.vbforums.com/showthread.php?897913-VB6-GetFile
    The file names in the server directory are combined into a single string with a vbCr used as a separator. The string...
  34. Re: how to get ping ms for internet connection.

    Aside from the fact that ping is often disabled on the target, the transit time is often not accurate due to the fact that some routers give ICMP packets a lower priority. See:...
  35. Thread: VB6 - GetFile

    by couttsj
    Replies
    17
    Views
    1,641

    Re: VB6 - GetFile

    I wanted to understand the vulnerabilities in RC4 better, and I found this study that re-examines the Mantin biases.

    Analysing and exploiting the Mantin biases in RC4...
  36. Thread: VB6 - GetFile

    by couttsj
    Replies
    17
    Views
    1,641

    Re: VB6 - GetFile

    We will have to agree to disagree. But in the original VBA code for RC4 that I ran across, the author had added the commented code in the code below. He had suggested that it improved the security of...
  37. Thread: VB6 - GetFile

    by couttsj
    Replies
    17
    Views
    1,641

    Re: VB6 - GetFile

    Take a closer look at each of those vulnerabilities. They are all based on the fact that the key stream produced by RC4 and a fixed key are pseudo random. If the key used to produce the key stream is...
  38. Thread: VB6 - GetFile

    by couttsj
    Replies
    17
    Views
    1,641

    Re: VB6 - GetFile

    I disagree. RC4 is a stream cipher traditionally using a 40 or 128 bit stored key. That left it vulnerable to figuring out the key from short encryptions or many encryption samples. That has made it...
  39. Thread: VB6 - GetFile

    by couttsj
    Replies
    17
    Views
    1,641

    VB6 - GetFile

    Attached are sample programs that facilitate downloading a file from a remote server using encryption. It was adapted from SendFile....
  40. Replies
    8
    Views
    600

    Re: Again on PNG into PictureBox

    See:
    https://www.vbforums.com/showthread.php?892243-Image-Viewer
    Because the MS viewers are so painfully slow, I have made it my default picture viewer.

    J.A. Coutts
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width