I would like to sign the message “hello” on the browser using SubtleCrypto with ECDSA curve P-384 or P-256, then verify the signature on the server with PHP 8. On the browser, I generate a keypair and use it to sign the message: I then send pk_hex and sign_hex to the server. This is what they look…
Tag: cryptography
Converting a php cryptography and hash_hmac(‘sha512’ code to c#
I am having troubles converting a cryptography code from php to c#, and i would really appreciate some help, here is the php code example data are the following: what i did so far is i am stuck in these two lines and i have no idea if i translate it them right Answer To compare both implementations, sample da…
Using Libsodium with PHP on WAMP
I’m having really hard trouble installing libsodium on my local server (WAMP64). I used this guide and many others, but still no luck. I successfully installed PEAR but I can’t use it to install the PHP wrapper of libsodium. Can someone post a little guide step by step to help me? I would apprecia…
RSA Encryption in Java / Decryption in PHP Fails
I have a PHP script that I have been using do decrypt a session key that I encrypted from iOS. The encryption is done on the client using a 1024-bit public key. Decryption on the server side is done with the corresponding private key. Now I’m trying to write an encryption method for Android. Unfortunate…
looking for c# equivalent of php’s password-verify()
I need to import a bunch of user accounts Moodle into a system written in c#. Moodle uses password_hash() function to create hashes of passwords. I need to be able to verify these passwords in c#. In other words I looking for a c# implementation of PHP’s password verify function ( http://www.php.net/man…
How do you Encrypt and Decrypt a PHP String?
What I mean is: Maybe something like: In PHP, how can you do this? Attempted to use Crypt_Blowfish, but it didn’t work for me. Answer Updated PHP 7 ready version. It uses openssl_encrypt function from PHP OpenSSL Library.
Simplest two-way encryption using PHP
What is the simplest way of doing two way encryption in common PHP installs? I need to be able to encrypt data with a string key, and use the same key to decrypt on the other end. The security isn’t as big of a concern as the portability of the code, so I’d like to be able to keep things