PHP code example of savannabits / sucipher

1. Go to this page and download the library: Download savannabits/sucipher library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

savannabits / sucipher example snippets


// Encrypt A Plain String:
$data = "Test Message"
$encrypted = app('sucipher')->encrypt($data); // The output is base64 encoded

// Decrypt an encrypted string: (The input should be a base64-encoded decrypted string
$decrypted = app('sucipher')->decrypt($encrypted); // Output: 'Test Message'