I have a simple web application that requires sign-up and, I want to encrypt/decrypt the password using the openssl_encrypt and openssl_decrypt function. I am new to PHP and have no idea how to import the functions or install the library into my project.
Ideally I want to do something like this.
$string_to_encrypt="password";
$key="key";
$encrypted_string=openssl_encrypt($string_to_encrypt,"AES-128-ECB",$password);
$decrypted_string=openssl_decrypt($encrypted_string,"AES-128-ECB",$password);