Search found 278 matches

by LiK137
Sat Mar 30, 2024 12:53 pm
Forum: Coding Questions
Topic: AES+Base64 encryption
Replies: 4
Views: 644

Re: AES+Base64 encryption

(However, in line 169 you pass just *bAESdec without indicating the "real" length) - You are absolutely right with those comments but the line 169 is terrible mistake and IMHO it may cause
by LiK137
Fri Mar 29, 2024 11:52 pm
Forum: Coding Questions
Topic: AES+Base64 encryption
Replies: 4
Views: 644

Re: AES+Base64 encryption

Thank you for your response. I have changed StringBytes to Len, increased Padding data to get at least 64 bytes in input which did not sense or improve.
Then I added showmemory for visually inspection of data and compare memory blocks. Now it is exactly understood that AES1 and AES2 pairs and BASE1 ...
by LiK137
Fri Mar 29, 2024 9:03 pm
Forum: Coding Questions
Topic: AES+Base64 encryption
Replies: 4
Views: 644

AES+Base64 encryption

Hi,
below is the problematic code of AES encryption with Base64 output.
The problem seems to be with AES part. when #PB_Cipher_ECB is used then it can be somehow make it nearly correct output by catching header and footer of data but otherwise the output is truncated and in both cases some trash ...
by LiK137
Thu Aug 24, 2023 5:59 pm
Forum: Coding Questions
Topic: AES+Base64 encryption
Replies: 3
Views: 826

Re: AES+Base64 encryption

Kiffi, You are right but useless in my case but thanx.
Same for Little John and again thanx.

For your convenience, I made corrections according to Your recommendations, and below is the updated code with explicit and typofree. If remove debugs and blank lines it will be less than 150 lines.
Thanks ...
by LiK137
Thu Aug 24, 2023 8:01 am
Forum: Coding Questions
Topic: AES+Base64 encryption
Replies: 3
Views: 826

AES+Base64 encryption

The below veeery small piece of code is used to encrypt the memory block to AES and then to base64 (to store in database) and backwise

;{ bAES64
#paData = "#@!$%^&*()(*&^%$!@#"
Procedure aesNCoder(*inData, *outData, szIn, Bits = 256)
szinData + szIn

If szinData < 18
paDataLen ...
by LiK137
Thu Apr 06, 2023 8:46 pm
Forum: Coding Questions
Topic: In linux rest post example with basic authentication and base64 image in the body part
Replies: 6
Views: 790

Re: In linux rest post example with basic authentication and base64 image in the body part

Thank You very much for reply.
You mean it is possible sending large file in only one post without breaking into smaller parts in a loop?
Then what about TCP packet size limitation?
by LiK137
Thu Apr 06, 2023 8:11 am
Forum: Coding Questions
Topic: In linux rest post example with basic authentication and base64 image in the body part
Replies: 6
Views: 790

Re: In linux rest post example with basic authentication and base64 image in the body part

What if in case large file? Sender doesn't care about size, just select photo by thumbview (Due to camera high quality issue size of images above 1 megabytes) and push the button. And question is whether the solution link You mentioned applicable to such bigger than 65K (usually 1-3 megabytes) files?
by LiK137
Wed Apr 05, 2023 3:55 pm
Forum: Coding Questions
Topic: In linux rest post example with basic authentication and base64 image in the body part
Replies: 6
Views: 790

Re: In linux rest post example with basic authentication and base64 image in the body part

Thank You very much for reply.
What if the Base64 encoded string length is greater than 65K, assume 10MB.
Should it work with SendNetworkString or SendNetworkData in one send or should it be separated and sent in loop until all data sent?
by LiK137
Wed Apr 05, 2023 1:43 pm
Forum: Coding Questions
Topic: In linux rest post example with basic authentication and base64 image in the body part
Replies: 6
Views: 790

In linux rest post example with basic authentication and base64 image in the body part

Hi,
I'd like to know whether it is possible from linux to post data to server with basic authentication to send data in base64 encoding using rest api. Unfortunately could not find purebasic example, only Java and C# for Windows implementations available in internet.
by LiK137
Thu Sep 15, 2022 1:48 pm
Forum: Linux
Topic: Solved: Async SendFTPFile Segmentation fault
Replies: 0
Views: 929

Solved: Async SendFTPFile Segmentation fault

Hi,
I have an app compiled with both 5.73LTSx64 and 6.00LTSx64 which both produce segmentation fault when processes SendFTPFile on DEB Linux but RPM(Centos) is OK. ReceiveFTPFile runs OK, only sending causes fault and cannot be tracked with onerror trapper.


It is solved (if it can be said so) just ...
by LiK137
Wed Aug 03, 2022 9:45 am
Forum: Coding Questions
Topic: Working with media files
Replies: 3
Views: 653

Re: Working with media files

Thanx,
so should dig in FFMPEG direction for lets say building new media from several sources for appending/inserting/trimming /adding sound etc.
by LiK137
Wed Aug 03, 2022 6:43 am
Forum: Coding Questions
Topic: Working with media files
Replies: 3
Views: 653

Working with media files

Hi,
Is there a solution to work with media files like UseImageDecoder|Encoder to read/modify/write/encode but for Audio/video files?
by LiK137
Mon Jul 04, 2022 10:49 am
Forum: Coding Questions
Topic: CrossDatabase sql query using two database handles
Replies: 10
Views: 1368

Re: CrossDatabase sql query using two database handles

I appreciate all replies and thank all repliers. I ask not about alternative ways using dumps or temporary table but looking for native sql based like ATTACH applicable in two SQLites as Kiffi's solution.
by LiK137
Mon Jul 04, 2022 6:44 am
Forum: Coding Questions
Topic: CrossDatabase sql query using two database handles
Replies: 10
Views: 1368

Re: CrossDatabase sql query using two database handles

Hi,
thanx for replies.
percy_b, using same schema on different engines. Postgres and SQLite with same structure, just one localDB and one remoteDB. I was implementing walking records one by one, check and record/update which take longer than synchronization over SQL query. Anyway, tried dblink but ...