public static function LingotekSession::create_mac in Lingotek Translation 7.7
Same name and namespace in other branches
- 6 lingotek.session.inc \LingotekSession::create_mac()
- 7.2 lingotek.session.inc \LingotekSession::create_mac()
- 7.3 lingotek.session.inc \LingotekSession::create_mac()
- 7.4 lingotek.session.inc \LingotekSession::create_mac()
- 7.5 lingotek.session.inc \LingotekSession::create_mac()
- 7.6 lingotek.session.inc \LingotekSession::create_mac()
File
- ./
lingotek.session.inc, line 222 - Handles api calls, logging in and logging out of LingoTek
Class
Code
public static function create_mac($json_msg) {
$resp = base64_encode(hash_hmac('sha256', $json_msg, pack('H*', variable_get('lingotek_login_key', '')), TRUE));
return $resp;
}