File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# crypto-js
22
3- Modularized port of googlecode project crypto-js .
3+ JavaScript library of crypto standards .
44
55## Node.js (Install)
66
@@ -85,6 +85,7 @@ require(["crypto-js"], function (CryptoJS) {
8585 var encrypted = CryptoJS .AES (... );
8686 var encrypted = CryptoJS .SHA256 (... );
8787 </script >
88+ ```
8889
8990## API
9091
Original file line number Diff line number Diff line change 11{
22 "name" : " crypto-js" ,
3- "version" : " 3.1.4" ,
4- "description" : " Modularized port of googlecode project crypto-js." ,
5- "homepage" : " http://github.com/evanvosberg/crypto-js" ,
3+ "version" : " 3.1.5" ,
4+ "description" : " JavaScript library of crypto standards." ,
5+ "license" : " MIT" ,
6+ "homepage" : " http://github.com/brix/crypto-js" ,
67 "repository" : {
78 "type" : " git" ,
8- "url" : " http://github.com/evanvosberg /crypto-js.git"
9+ "url" : " http://github.com/brix /crypto-js.git"
910 },
1011 "keywords" : [
1112 " security" ,
Original file line number Diff line number Diff line change 225225 var thatByte = ( thatWords [ i >>> 2 ] >>> ( 24 - ( i % 4 ) * 8 ) ) & 0xff ;
226226 thisWords [ ( thisSigBytes + i ) >>> 2 ] |= thatByte << ( 24 - ( ( thisSigBytes + i ) % 4 ) * 8 ) ;
227227 }
228- } else if ( thatWords . length > 0xffff ) {
228+ } else {
229229 // Copy one word at a time
230230 for ( var i = 0 ; i < thatSigBytes ; i += 4 ) {
231231 thisWords [ ( thisSigBytes + i ) >>> 2 ] = thatWords [ i >>> 2 ] ;
232232 }
233- } else {
234- // Copy all words at once
235- thisWords . push . apply ( thisWords , thatWords ) ;
236233 }
237234 this . sigBytes += thatSigBytes ;
238235
Original file line number Diff line number Diff line change 225225 var thatByte = ( thatWords [ i >>> 2 ] >>> ( 24 - ( i % 4 ) * 8 ) ) & 0xff ;
226226 thisWords [ ( thisSigBytes + i ) >>> 2 ] |= thatByte << ( 24 - ( ( thisSigBytes + i ) % 4 ) * 8 ) ;
227227 }
228- } else if ( thatWords . length > 0xffff ) {
228+ } else {
229229 // Copy one word at a time
230230 for ( var i = 0 ; i < thatSigBytes ; i += 4 ) {
231231 thisWords [ ( thisSigBytes + i ) >>> 2 ] = thatWords [ i >>> 2 ] ;
232232 }
233- } else {
234- // Copy all words at once
235- thisWords . push . apply ( thisWords , thatWords ) ;
236233 }
237234 this . sigBytes += thatSigBytes ;
238235
Original file line number Diff line number Diff line change 11{
22 "name" : " crypto-js" ,
3- "version" : " 3.1.4" ,
4- "description" : " Modularized port of googlecode project crypto-js." ,
3+ "version" : " 3.1.5" ,
4+ "description" : " JavaScript library of crypto standards." ,
5+ "license" : " MIT" ,
56 "author" : {
67 "name" : " Evan Vosberg" ,
78 "url" : " http://github.com/evanvosberg"
89 },
9- "homepage" : " http://github.com/evanvosberg /crypto-js" ,
10+ "homepage" : " http://github.com/brix /crypto-js" ,
1011 "repository" : {
1112 "type" : " git" ,
12- "url" : " http://github.com/evanvosberg /crypto-js.git"
13+ "url" : " http://github.com/brix /crypto-js.git"
1314 },
1415 "keywords" : [
1516 " security" ,
You can’t perform that action at this time.
0 commit comments