Skip to content
Advertisement

Tag: c#

Convert php decryption function to C# responds differently result

I created a service that encrypts and stores keys using PHP. The Service returns an encrypted response to the client. The client program will need to decrypt the encrypted data. But the decrypt function I wrote in PHP responds differently in C#. So my php Function: It returns: Now I have converted the above function to C #. The result

Getting the exact ping in ms from the server [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 9 months ago. Improve this question i’m having trouble trying to get the exact ping value in ms from the server and storing it. I’m trying to make a website that

C# RSA Encrpytion -> Laravel phpseclib decrypt()

I’m using a key pair generated by phpseclib and then I use it to encrypt in C# a message and decrypt in PHP. The public key is: The conversion to XML is done via https://superdry.apphb.com/tools/online-rsa-key-converter Here is how the message is encrypted in C#: What is sent (encrypted message) by C# to PHP (changes everytime): On the decryption side in

PHP json_encode to C# Object unable to convert

I have this array of objects that contains some strings and an array of strings that I want to return from my server: “[{“original_file_name”:”Plain_HAIR.pdf”,”encrypted_file_name”:”UTTSJG13V1EC46J.pdf”,”is_successful”:true,”message”:””,”email”:”[“testuser@gmail.com”]”,”doctype”:”HAIR”}]” On my local app, I have a class that looks like this: The issue is that when it comes back to the local app, I get an error saying : {“Error converting value “[{“original_file_name”:”Plain_HAIR.pdf”,”encrypted_file_name”:”UTTSJG13V1EC46J.pdf”,”is_successful”:true,”message”:””,”email”:”[“testuser@gmail.com”]”,”doctype”:”HAIR”}]” to type

c# posting to PHP working on localhost, but not on production server

I need to post a username and a password, to a server to validate it, then return a true or false. This is fully working on my local machine, but when I try it on the production server, it is not receiveing the POST values (it is returning the “noPOST” back to the c# code). C# code: PHP Code: [EDITED]

Best practice to connect WPF and SQL Server

I have been working using WPF for a while, but due to lack of resources I used Access Files as Databases. Recently I got the opportunity to get my hands on a SQL Database. When I created my WPF Application (a simple data entry, which writes and read from the database) one of the IT guys where I work started

php-ffi: Return type const char* is a string

Why is the result of const char * a string and char * an object „byte-array“? A simple example: returns Removing const from the definition returns: Background A function of a dynamically linked external C library returns binary data which include NULL-bytes. When const is in the definition of the header file the resulting string is not complete = shortened

PECL PCSC install on PHP 7.4

I am using PHP code that relies on the package: https://pecl.php.net/package/pcsc Finally I need to update from PHP 5 to PHP 7 (late enough). The REMI repo for CentOS unfortunately does not support PCSC for PHP7 anymore so I tried to install it manually by using the command: But I get a bunch of errors (see below). Is there a

Advertisement