mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 08:57:03 +03:00
browserify -> webpack
Code refactoring
This commit is contained in:
parent
542c46b654
commit
27d4bd74ad
138 changed files with 27231 additions and 32424 deletions
19
vendors/jsbn/fix.js
vendored
Normal file
19
vendors/jsbn/fix.js
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
|
||||
function RSAEncryptLong(text) {
|
||||
var length = ((this.n.bitLength()+7)>>3) - 11;
|
||||
if (length <= 0) return false;
|
||||
var ret = "";
|
||||
var i = 0;
|
||||
while(i + length < text.length) {
|
||||
ret += this._short_encrypt(text.substring(i,i+length));
|
||||
i += length;
|
||||
}
|
||||
ret += this._short_encrypt(text.substring(i,text.length));
|
||||
return ret;
|
||||
}
|
||||
|
||||
RSAKey.prototype._short_encrypt = RSAEncrypt;
|
||||
RSAKey.prototype.encrypt = RSAEncryptLong;
|
||||
|
||||
window['RSAKey'] = RSAKey;
|
||||
Loading…
Add table
Add a link
Reference in a new issue