Only a short sidenote:
Gethex does not return an even length hex string. It forgets "leading zero" if present.
For example: "01234567" is returned as "1234567".
Search found 8 matches
- Mon Apr 21, 2025 10:56 pm
- Forum: Tricks 'n' Tips
- Topic: BigInt module (SSE2)
- Replies: 47
- Views: 28540
- Mon Mar 17, 2025 6:47 pm
- Forum: Coding Questions
- Topic: json bool
- Replies: 5
- Views: 402
Re: json bool
Yes, but byte is no data type in Json. (only string, number, bool, array and object)
So I thought, it would be interpreted as boolean.
Is there a good way to get the right output from insert/compose?
Or do I have to do a dirty way with defining it as string in structure and do a replacement after ...
So I thought, it would be interpreted as boolean.
Is there a good way to get the right output from insert/compose?
Or do I have to do a dirty way with defining it as string in structure and do a replacement after ...
- Mon Mar 17, 2025 6:11 pm
- Forum: Coding Questions
- Topic: json bool
- Replies: 5
- Views: 402
json bool
The following simple example:
Structure json_
test1.b
test2.b
EndStructure
Define json.json_
json\test1 = #True
json\test2 = #False
js = CreateJSON(#PB_Any)
InsertJSONStructure(JSONValue(js), @json, json_)
Debug ComposeJSON(js, #PB_JSON_PrettyPrint)
the output should be:
{
"test1": true ...
Structure json_
test1.b
test2.b
EndStructure
Define json.json_
json\test1 = #True
json\test2 = #False
js = CreateJSON(#PB_Any)
InsertJSONStructure(JSONValue(js), @json, json_)
Debug ComposeJSON(js, #PB_JSON_PrettyPrint)
the output should be:
{
"test1": true ...
- Tue Aug 27, 2024 10:08 am
- Forum: Coding Questions
- Topic: Looking for ed25519 code
- Replies: 6
- Views: 1666
Re: Looking for ed25519 code
I found this paper for differences and converting ed points to ec points.
https://billatnapier.medium.com/the-confusing-thing-about-x25519-and-ed25519-10310df41f81#:~:text=With%20Curve%2025519%2C%20we%20can,and%20a%20replacement%20for%20ECDH
https://www.youtube.com/watch?v=rPIpiH3X138
It sounds a ...
https://billatnapier.medium.com/the-confusing-thing-about-x25519-and-ed25519-10310df41f81#:~:text=With%20Curve%2025519%2C%20we%20can,and%20a%20replacement%20for%20ECDH
https://www.youtube.com/watch?v=rPIpiH3X138
It sounds a ...
- Wed Aug 21, 2024 2:17 pm
- Forum: Coding Questions
- Topic: Looking for ed25519 code
- Replies: 6
- Views: 1666
Re: Looking for ed25519 code
Hi idle, thank you for pointing me to your thread.
I thought there are differences in curve and keys between ed25519 (edwards) used for sign/verify messages) and curve25519 used for message encrypt/decrypt?
I thought there are differences in curve and keys between ed25519 (edwards) used for sign/verify messages) and curve25519 used for message encrypt/decrypt?
- Tue Aug 20, 2024 11:21 am
- Forum: Coding Questions
- Topic: Looking for ed25519 code
- Replies: 6
- Views: 1666
Looking for ed25519 code
Hi all.
I'm looking for an implementation for ed25519 sign/verify (crossplatform), but find nothing about it.
I found only for C, C#, vb6 and other languages.
Did someone adapted it without using 3rd party libs and would share it?
C#: https://github.com/CodesInChaos/Chaos.NaCl
C: https://github ...
I'm looking for an implementation for ed25519 sign/verify (crossplatform), but find nothing about it.
I found only for C, C#, vb6 and other languages.
Did someone adapted it without using 3rd party libs and would share it?
C#: https://github.com/CodesInChaos/Chaos.NaCl
C: https://github ...
- Sun Dec 10, 2023 7:10 pm
- Forum: Coding Questions
- Topic: RegEx crash
- Replies: 2
- Views: 382
Re: RegEx crash
oh damn, yes, you're right. With .i it's working on mac too.
Thank you.
Thank you.
- Sun Dec 10, 2023 6:39 pm
- Forum: Coding Questions
- Topic: RegEx crash
- Replies: 2
- Views: 382
RegEx crash
The following code does crash in 6.03.
"The specified #RegularExpression is not initialised"
regex has a value<>0
It's working fine in windows and linux.
Dim match1$(0)
regex.l = CreateRegularExpression(#PB_Any, "[Ss]\d{1,2}[Ee]\d{1,2}")
ExtractRegularExpression(regex, "S01E01 - blabla ...
"The specified #RegularExpression is not initialised"
regex has a value<>0
It's working fine in windows and linux.
Dim match1$(0)
regex.l = CreateRegularExpression(#PB_Any, "[Ss]\d{1,2}[Ee]\d{1,2}")
ExtractRegularExpression(regex, "S01E01 - blabla ...