Stubs for PECL XXTEA

https://pecl.php.net/package/xxtea
This commit is contained in:
sirian 2019-11-06 15:01:57 +03:00 committed by GitHub
parent 4cdbd9c9bf
commit 291a8b14a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 56 additions and 0 deletions

56
xxtea/xxtea.php Normal file
View File

@ -0,0 +1,56 @@
<?php
/**
* Stubs for XXTEA
* https://pecl.php.net/package/xxtea.
*/
class XXTEA
{
/**
* Encrypts data.
*
* @param string $data Data to be encrypted
* @param string $key Encryption key
*
* @return string
*
* @since 1.0.0
*/
public static function encrypt($data, $key) { }
/**
* Decrypts data.
*
* @param string $data Data to be decrypted
* @param string $key Encryption key
*
* @return string|false
*
* @since 1.0.0
*/
public static function decrypt($data, $key) { }
}
/**
* Encrypts data.
*
* @param string $data Data to be encrypted
* @param string $key Encryption key
*
* @return string
*
* @since 1.0.0
*/
function xxtea_encrypt($data, $key) { }
/**
* Decrypts data.
*
* @param string $data Data to be decrypted
* @param string $key Encryption key
*
* @return string|false
*
* @since 1.0.0
*/
function xxtea_decrypt($data, $key) { }