webogram-i2p/app/js/lib/sha1_worker.js

19 lines
478 B
JavaScript
Raw Normal View History

2014-01-05 16:07:11 +00:00
/*!
2014-02-20 00:47:22 +00:00
* Webogram v0.0.18 - messaging web application for MTProto
2014-01-05 16:07:11 +00:00
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE
*/
importScripts(
'../../vendor/console-polyfill/console-polyfill.js?1',
'mtproto.js',
'../../vendor/cryptoJS/crypto.js?1'
);
2014-01-05 16:07:11 +00:00
onmessage = function (e) {
var taskID = e.data.taskID;
postMessage({taskID: taskID, result: sha1Hash(e.data.bytes)});
2014-02-13 15:37:20 +00:00
}