mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-10 04:21:02 +00:00
a5164da136
/twitter on & /twitter test in a user channel to test
14 lines
331 B
C
14 lines
331 B
C
#include <net.h>
|
|
|
|
inherit NET_PATH "library/base64";
|
|
|
|
#include HTTP_PATH "library.i"
|
|
|
|
string hmac_bin(int method, string key, string arg) {
|
|
return regreplace(hmac(method, key, arg), "..", #'xx2c, 1); //'
|
|
}
|
|
|
|
string hmac_base64(int method, string key, string arg) {
|
|
return encode_base64((int *)hmac_bin(method, key, arg));
|
|
}
|