Search found 868 matches

by toralf
15 Dec 2023, 06:50
Forum: Ask for Help (v1)
Topic: Connect to Loggly (upload/download)
Replies: 1
Views: 161

Connect to Loggly (upload/download)

Hi there, Does anyone have experience with Loggly? I want to centralize the logs from one of my apps, that is being used by several people. For this i need to upload the logs from the different users. https://documentation.solarwinds.com/en/success_center/loggly/content/admin/http-endpoint.htm or ht...
by toralf
06 Aug 2023, 03:15
Forum: Ask for Help (v2)
Topic: Replace string of text with an option by double clicking
Replies: 4
Views: 349

Re: Replace string of text with an option by double clicking

The problem you have to solve is to detect the whole string (all three options). I’m not sure hoe you can detect it in Word. Will the options be surrounded by the brackets like in your example? Then there might be an option by sending some keystrokes to get all the information. Don‘t know if you cou...
by toralf
04 Aug 2023, 06:25
Forum: Ask for Help (v2)
Topic: Replace string of text with an option by double clicking
Replies: 4
Views: 349

Re: Replace string of text with an option by double clicking

In which software (editor) should this replacement take place? Within an AHK GUI, or in an editor? Or in MS Word/Excel?

PS: Welcome to the forum
by toralf
04 Aug 2023, 06:22
Forum: Ask for Help (v1)
Topic: FileSelectFile - Ignore file in use
Replies: 6
Views: 383

Re: FileSelectFile - Ignore file in use

You could try it with darg & drop on a Gui or a script icon
Or via explorer context menu "send to" to a script.
by toralf
16 May 2023, 08:51
Forum: Ich brauche Hilfe
Topic: AHK v2 - If VAR contains.... Topic is solved
Replies: 4
Views: 964

Re: AHK v2 - If VAR contains.... Topic is solved

Never knew about the \A and \z in regex. It does not seem to be mentined in the ahk help file. A quick search in the web gave the answer.
by toralf
26 Feb 2023, 11:18
Forum: Ask for Help (v2)
Topic: I transcribed a C# Levenshtein distance function, the performance is 100 times slower? What is the problem? Topic is solved
Replies: 6
Views: 711

Re: I transcribed a C# Levenshtein distance function, the performance is 100 times slower? What is the problem? Topic is solved

I tested Levenshtein a few years ago to compare meta data of music files. I had similar thoughts on speed. I switched to SIFT3, it gives different numbers, but it was about 13 times faster and did the job that was expected.
See http://www.autohotkey.com/forum/topic59407.html
by toralf
18 Feb 2023, 08:46
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Re: Verify an RSA encrypted and signed string

Dear Malcev, Thanks a lot. Yes, that was the problem. Now it works robust. Just out of curiosity: How does it then work via URL when these characters are removed or replaced? Will CryptStringToBinary() then be changed that it replaces the characters backwards and append the string with "=" to fill t...
by toralf
14 Feb 2023, 18:04
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Re: Verify an RSA encrypted and signed string

I created some functions from the previous code. It works, but sometime it doesn't (twice out of 10 test runs). I have no clue why and where it screws up. Then the verification states STATUS_INVALID_SIGNATURE. But since it does work most of the time, there should not be anything wrong in the code in...
by toralf
14 Feb 2023, 07:29
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Re: Verify an RSA encrypted and signed string

Here is the code for encyption and decryption for anyones reference, Thanks a lot malcev for your support, I now have all the functionalities that i need. ; Create key pair and store them, re-import public key to encrypt message ; then re-import private key, decrypt message ; original by malcev ; ht...
by toralf
13 Feb 2023, 12:22
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Re: Verify an RSA encrypted and signed string

Thanks malcev, If i understand correctly the shared secret could later be used for symmetric encryption. In my use cases there is no need for further encryption. Hence, i think i do not need it. Or am i missing something? And as far as i understood the secret agreement also requires that both sender...
by toralf
13 Feb 2023, 07:28
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Re: Verify an RSA encrypted and signed string

Thanks malcevs, 1) Ok, I see, at least i can calculate now the required key size. 2) ok, now i see. I got it upside down. the sender can sign his message with his private key, but he can not encrypt the message itself with only his privat key. To encrypt the message, the sender has to use the public...
by toralf
13 Feb 2023, 03:32
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Re: Verify an RSA encrypted and signed string

With that being out of the way. I went back to the original problem: How to encrypt the payload? I currently have two issues: when the payload string gets too large, the encryption doesn't work. See line 179. What can be done to prevent this? has the payload be chucked up before encryption? when the...
by toralf
13 Feb 2023, 03:24
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Re: Verify an RSA encrypted and signed string

Thanks a lot malcev for others as reference, here is the working code. the signature is now verified as valid (0 = success). ; Create key pair and store them, re-import private key to hash and sign payload, ; then re-import public key to verify signature ; original by malcev ; https://www.autohotkey...
by toralf
12 Feb 2023, 11:40
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Re: Verify an RSA encrypted and signed string

to create a smaller problem. I focused on only the verification of the signature. But it tells me it's an invalid signature. Have I made a mistake in reimporting the public key (line 157) or in the preparation of the signature (line 171) or in the verification (line 175)? Edit: removed old code, see...
by toralf
12 Feb 2023, 09:10
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Re: Verify an RSA encrypted and signed string

I get a status "-1073741816" from BCryptEncrypt. But i can't find out which status this is.... EDIT: seems to be "invalid handle" Edit: Ok, i resolved this, i cleand up to early. Code is now below this post. I'll remove it from above. There still seems to be an error. At least I assumed that when I ...
by toralf
12 Feb 2023, 08:31
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Re: Verify an RSA encrypted and signed string

By studying malcevs code I think for import of the public key I need "X509_PUBLIC_KEY_INFO := 8". I update the above code.
by toralf
12 Feb 2023, 08:24
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Re: Verify an RSA encrypted and signed string

I seem to be over optimistic to "just" encrypt the payload + signature with the private key. I'm not able to get to the encrypted message. And even looking beyond that point, to import the public key. I'm missing the public equivalent to PKCS_PRIVATE_KEY_INFO for the CryptDecodeObjectEx function and...
by toralf
12 Feb 2023, 06:20
Forum: Ask for Help (v1)
Topic: Verify an RSA encrypted and signed string
Replies: 15
Views: 1185

Verify an RSA encrypted and signed string

Dear all, I want to verify an RSA encrypted and signed string with the correct public key and get the payload data from the string. With the help of https://www.autohotkey.com/boards/viewtopic.php?f=6&t=89236&p=505713#p505923 I was able to create a private and public key pair. And the method encrypt...
by toralf
01 Jan 2023, 11:20
Forum: Wish List
Topic: use AHK.exe to parse scripts
Replies: 17
Views: 4084

Re: use AHK.exe to parse scripts

Dear Lexikos,
Hope you had a great chistmas time. All the best for 2023.
Thanks a lot for the dlls. I'll test how i can make use of them.
by toralf
12 Dec 2022, 10:40
Forum: Ask for Help (v1)
Topic: unblock a file
Replies: 2
Views: 277

Re: unblock a file

I found another information on the web about these alternate data streams (ADS) https://www.minitool.com/partition-disk/alternate-data-streams.html To detect the data streams dir /r can be used. It is very prominent in the download folder. The files from the internet are listed twice. One time as th...

Go to advanced search