parent
4cdbd9c9bf
commit
291a8b14a3
|
@ -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) { }
|
Loading…
Reference in New Issue