Encryption/decryption algorithm

📘

Encryption and Decryption Algorithm

At Vendo we use AES with a key length of 128 bits and ECB mode to encrypt and decrypt data.
This is the default algorithm that MySQL and MariaDB use in their AES_ENCRYPT() and AES_DECRYPT() functions.

Vendo's SDK for PHP

If you're working on a php project then you can use Vendo's SDK for PHP. You can install it using composer.
Installation instructions can be found SDK for PHP.

Usage

<?php

include '/path/to/vendor/autoload.php';

$encryptedData = \VendoSdk\Crypto\Aes128Ecb::encrypt('test', 'secret_key');
$plainText =\VendoSdk\Crypto\Aes128Ecb::decrypt($encryptedData, 'secret_key');

👍

Important

You won't really need to use this methods if you're generating join links using the SDK for PHP, it does it for you already.
Check the examples in the repository, here https://github.com/lbadmin/vendo-sdk-php/tree/master/examples


Did this page help you?