Answers for "php create base64 hash"

PHP
2

php base64

$base_string = base64_encode("your-string"); //for base64 encoding
echo base64_decode($base_string); //for base64 decoding
Posted by: Guest on October-20-2021
1

base64 encode username password php example

$auth = base64_encode($uname . ":" . $pass);
curl_setopt($curl, CURLOPT_HTTPHEADER, array("Authorization: Basic $auth",
                                              "Accept: application/json",
                                              "Content-Type: application/json"));
Posted by: Guest on September-23-2020

Browse Popular Code Answers by Language