public static function LingotekSession::create_mac in Lingotek Translation 7.2
Same name and namespace in other branches
- 6 lingotek.session.inc \LingotekSession::create_mac()
- 7.7 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()
1 call to LingotekSession::create_mac()
File
- ./
lingotek.session.inc, line 200 - 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;
}