PHP Classes

File: src/helpers/toBase64.php

Recommend this page to a friend!
  Classes of Adão Pedro   PHP OpenSSL Proxy   src/helpers/toBase64.php   Download  
File: src/helpers/toBase64.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP OpenSSL Proxy
Manage certificates and encrypt data using OpenSSL
Author: By
Last change:
Date: 2 years ago
Size: 401 bytes
 

Contents

Class file image Download
<?php

   
/*
    * This file is part of the php-openssl-proxy.
    *
    * (c) Adão Pedro <adao.pedro16@gmail.com>
    *
    * For the full copyright and license information, please view the LICENSE
    * file that was distributed with this source code.
    */

    /**
     * Encode a data to a base64
     */
   
function toBase64(mixed $data): string {
        return \
base64_encode($data);
    }