Before Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 1.9 KiB |
@ -1 +1 @@
|
||||
<!doctype html><html lang=en ng-app=myApp manifest=webogram.appcache><head><meta charset=utf-8><meta name=viewport content="width=device-width, user-scalable=no"><title>Webogram</title><link rel=stylesheet href=css/app.css><link rel=icon href=favicon.ico type=image/x-icon><link rel=apple-touch-icon href=img/icons/icon90.png><link rel=apple-touch-icon sizes=90x90 href=img/icons/icon90.png><link rel=apple-touch-icon sizes=120x120 href=img/icons/icon120.png><meta name=apple-mobile-web-app-title content=Webogram><meta name=mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black-translucent><meta property=og:title content=Webogram><meta property=og:url content="http://zhukov.github.io/webogram/"><meta property=og:image content=http://zhukov.github.io/webogram/img/logo_share.png><meta property=og:site_name content=Webogram><meta property=og:description content="Welcome to an experimental web-client of Telegram messenger. See https://github.com/zhukov/webogram for more info."></head><body><div class=page_wrap ng-view=""></div><script src=js/app.js></script></body></html> |
||||
<!doctype html><html lang=en ng-app=myApp manifest=webogram.appcache ng-csp=""><head><meta charset=utf-8><meta name=viewport content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"><title>Webogram</title><link rel=stylesheet href=css/app.css><link rel=icon href=favicon.ico type=image/x-icon><link rel=apple-touch-icon href=img/iphone_home120.png><link rel=apple-touch-icon sizes=120x120 href=img/iphone_home120.png><link rel=apple-touch-startup-image media="(device-width: 320px)" href=img/iphone_startup.png><meta name=apple-mobile-web-app-title content="Telegram Web"><meta name=mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black-translucent><meta property=og:title content=Webogram><meta property=og:url content="http://zhukov.github.io/webogram/"><meta property=og:image content=http://zhukov.github.io/webogram/img/logo_share.png><meta property=og:site_name content=Webogram><meta property=og:description content="Welcome to an experimental web-client of Telegram messenger. See https://github.com/zhukov/webogram for more info."></head><body><div class=page_wrap ng-view=""></div><script src=js/app.js></script></body></html> |
@ -1,26 +0,0 @@
|
||||
/*! |
||||
* Webogram v0.1.9 - messaging web application for MTProto |
||||
* 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', |
||||
'bin_utils.js', |
||||
'../../vendor/jsbn/jsbn_combined.js', |
||||
'../../vendor/cryptoJS/crypto.js' |
||||
); |
||||
|
||||
onmessage = function (e) { |
||||
// console.log('AES worker in', e.data);
|
||||
var taskID = e.data.taskID, |
||||
result; |
||||
|
||||
if (e.data.task == 'encrypt') { |
||||
result = aesEncrypt(e.data.bytes, e.data.keyBytes, e.data.ivBytes); |
||||
} else { |
||||
result = aesDecrypt(e.data.encryptedBytes, e.data.keyBytes, e.data.ivBytes); |
||||
} |
||||
postMessage({taskID: taskID, result: result}); |
||||
} |
@ -0,0 +1,47 @@
|
||||
/*! |
||||
* Webogram v0.2.5 - messaging web application for MTProto |
||||
* 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', |
||||
'bin_utils.js', |
||||
'../../vendor/jsbn/jsbn_combined.js', |
||||
'../../vendor/leemon_bigint/bigint.js', |
||||
'../../vendor/closure/long.js', |
||||
'../../vendor/cryptoJS/crypto.js' |
||||
); |
||||
|
||||
onmessage = function (e) { |
||||
var taskID = e.data.taskID, |
||||
result; |
||||
|
||||
switch (e.data.task) { |
||||
case 'factorize': |
||||
result = pqPrimeFactorization(e.data.bytes); |
||||
break; |
||||
|
||||
case 'mod-pow': |
||||
result = bytesModPow(e.data.x, e.data.y, e.data.m); |
||||
break; |
||||
|
||||
case 'sha1-hash': |
||||
result = sha1Hash(e.data.bytes); |
||||
break; |
||||
|
||||
case 'aes-encrypt': |
||||
result = aesEncrypt(e.data.bytes, e.data.keyBytes, e.data.ivBytes); |
||||
break; |
||||
|
||||
case 'aes-decrypt': |
||||
result = aesDecrypt(e.data.encryptedBytes, e.data.keyBytes, e.data.ivBytes); |
||||
break; |
||||
|
||||
default: |
||||
throw new Error('Unknown task: ' + e.data.task); |
||||
} |
||||
|
||||
postMessage({taskID: taskID, result: result}); |
||||
} |
@ -1,18 +0,0 @@
|
||||
/*! |
||||
* Webogram v0.1.9 - messaging web application for MTProto |
||||
* 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', |
||||
'bin_utils.js', |
||||
'../../vendor/leemon_bigint/bigint.js', |
||||
'../../vendor/closure/long.js', |
||||
'../../vendor/jsbn/jsbn_combined.js' |
||||
); |
||||
|
||||
onmessage = function (e) { |
||||
postMessage(pqPrimeFactorization(e.data)); |
||||
} |
@ -1,18 +0,0 @@
|
||||
/*! |
||||
* Webogram v0.1.9 - messaging web application for MTProto |
||||
* 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', |
||||
'bin_utils.js', |
||||
'../../vendor/cryptoJS/crypto.js' |
||||
); |
||||
|
||||
onmessage = function (e) { |
||||
var taskID = e.data.taskID; |
||||
|
||||
postMessage({taskID: taskID, result: sha1Hash(e.data.bytes)}); |
||||
} |