n3wbie Posted January 21, 2023 Share Posted January 21, 2023 Hello, I'm Looking For Encryption Functions that are inlined with php.,I m new to Coding Language and Also Very Raw at Cryptography. if i use Crypt.au3 The Following string is generated if I Run Example 0xE7E4858E0C76D59BFF3DB1DDA348C93C328E #include <Crypt.au3> #include <MsgBoxConstants.au3> Example() Func Example() ; Encrypt text using a generic password. Local $dEncrypted = StringEncrypt(True, 'Encrypt this data.', 'securepassword') ; Display the encrypted text. MsgBox($MB_SYSTEMMODAL, 'Encrypted', $dEncrypted) ClipPut($dEncrypted) ; Decrypt the encrypted text using the generic password. Local $sDecrypted = StringEncrypt(False, $dEncrypted, 'securepassword') ; Display the decrypted text. MsgBox($MB_SYSTEMMODAL, 'Decrypted', $sDecrypted) EndFunc ;==>Example Func StringEncrypt($bEncrypt, $sData, $sPassword) _Crypt_Startup() ; Start the Crypt library. Local $vReturn = '' If $bEncrypt Then ; If the flag is set to True then encrypt, otherwise decrypt. $vReturn = _Crypt_EncryptData($sData, $sPassword, $CALG_RC4) Else $vReturn = BinaryToString(_Crypt_DecryptData($sData, $sPassword, $CALG_RC4)) EndIf _Crypt_Shutdown() ; Shutdown the Crypt library. Return $vReturn EndFunc ;==>StringEncrypt I'm not sure how to use binary . If the above is binary, where can I find a PHP equivalent function? The overall concept I want to implement is to send encrypted data from Autoit and retrieve it using PHP on the server. It would be fantastic if someone could direct my attention to a post or approach that can be used to accomplish the same thing. Any Guidance Will be Appreciated. Link to comment Share on other sites More sharing options...
n3wbie Posted January 21, 2023 Author Share Posted January 21, 2023 (edited) https://autoit-script.ru/threads/kriptografija-funkcii-shifrovanija-aes128-aes192-aes256-cbc-sovmestimye-s-php-openssl.23418/#post-135107 Some Resources i Could Find But Not Able to understand still Edited January 21, 2023 by n3wbie Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now