1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

Remove QCA usage in JSResolver

This commit is contained in:
Uwe L. Korn
2014-05-28 10:57:29 +01:00
parent 34ff1d6687
commit f0ea99fc71
3 changed files with 5 additions and 38 deletions

View File

@@ -312,6 +312,11 @@ Tomahawk.asyncRequest = function (url, callback, extraHeaders, options) {
};
Tomahawk.sha256 = Tomahawk.sha256 || CryptoJS.SHA256;
Tomahawk.md5 = Tomahawk.md5 || CryptoJS.MD5;
// Return a HMAC (md5) signature of the input text with the desired key
Tomahawk.hmac = function (key, message) {
return CryptoJS.HmacMD5(message, key);
};
// some aliases
Tomahawk.setTimeout = Tomahawk.setTimeout || window.setTimeout;