mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 08:44:49 +00:00
20 lines
280 B
PHP
20 lines
280 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Util\HttpSignatures;
|
||
|
|
||
|
interface AlgorithmInterface
|
||
|
{
|
||
|
/**
|
||
|
* @return string
|
||
|
*/
|
||
|
public function name();
|
||
|
|
||
|
/**
|
||
|
* @param string $key
|
||
|
* @param string $data
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function sign($key, $data);
|
||
|
}
|