-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
84 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
yarn check:license | ||
yarn lint | ||
yarn test:prod | ||
yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
var key = 'aes__compressed'; | ||
var data = {data: [{age: 1}, {age: '2'}]}; | ||
var aes_c = new SecureLS({encodingType: 'aes', encryptionSecret: ''}); | ||
ae = aes_c.AES.encrypt(JSON.stringify(data), '') | ||
bde = aes_c.AES.decrypt(ae.toString(), '') | ||
de = bde.toString(aes_c.enc._Utf8) | ||
var data = { data: [{ age: 1 }, { age: '2' }] }; | ||
var aes_c = new SecureLS({ encodingType: 'aes', encryptionSecret: '' }); | ||
ae = aes_c.AES.encrypt(JSON.stringify(data), ''); | ||
bde = aes_c.AES.decrypt(ae.toString(), ''); | ||
de = bde.toString(aes_c.enc._Utf8); | ||
|
||
aes_c.set(key, data); | ||
console.log('AES Compressed'); | ||
console.log(localStorage.getItem(key)); | ||
console.log(aes_c.get(key)); | ||
console.log('____________________________________') | ||
console.log('____________________________________'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,40 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Example Page</title> | ||
<script type="text/javascript" src="../dist/secure-ls.js"></script> | ||
<script type="text/javascript" src="vendor/screenlog.min.js"></script> | ||
<head> | ||
<title>Example Page</title> | ||
<script type="text/javascript" src="../dist/secure-ls.js"></script> | ||
<script type="text/javascript"> | ||
window.SecureLS = SecureLS.default; | ||
</script> | ||
<script type="text/javascript" src="vendor/screenlog.min.js"></script> | ||
</head> | ||
<body> | ||
Open console to check localStorage data. | ||
<br /> | ||
All of the console output from various examples will be log here. Scroll within it to view all logs. | ||
<br /><br /> | ||
Input: | ||
<pre>{"data":[{"age":1},{"age":"2"}]}</pre> | ||
Output: | ||
<pre>{"data":[{"age":1},{"age":"2"}]}</pre> | ||
<script type="text/javascript"> | ||
screenLog.init({ | ||
autoScroll: false, | ||
}); | ||
</script> | ||
|
||
</head> | ||
<body> | ||
Open console to check localStorage data. | ||
<br /> | ||
All of the console output from various examples will be log here. Scroll within it to view all logs. | ||
<br /><br /> | ||
Input: <pre>{"data":[{"age":1},{"age":"2"}]}</pre> | ||
Output: <pre>{"data":[{"age":1},{"age":"2"}]}</pre> | ||
<script type="text/javascript"> | ||
screenLog.init({ | ||
autoScroll: false | ||
}); | ||
</script> | ||
|
||
<script type="text/javascript" src="standard.js"></script> | ||
<script type="text/javascript" src="only-base64.js"></script> | ||
<script type="text/javascript" src="only-compressed.js"></script> | ||
<script type="text/javascript" src="base64-compressed.js"></script> | ||
<script type="text/javascript" src="aes-compressed.js"></script> | ||
<script type="text/javascript" src="aes-compressed-realm.js"></script> | ||
<script type="text/javascript" src="aes-uncompressed.js"></script> | ||
<script type="text/javascript" src="des-compressed.js"></script> | ||
<script type="text/javascript" src="des-uncompressed.js"></script> | ||
<script type="text/javascript" src="rabbit-compressed.js"></script> | ||
<script type="text/javascript" src="rabbit-uncompressed.js"></script> | ||
<script type="text/javascript" src="rc4-compressed.js"></script> | ||
<script type="text/javascript" src="rc4-uncompressed.js"></script> | ||
</body> | ||
</html> | ||
<script type="text/javascript" src="standard.js"></script> | ||
<script type="text/javascript" src="only-base64.js"></script> | ||
<script type="text/javascript" src="only-compressed.js"></script> | ||
<script type="text/javascript" src="base64-compressed.js"></script> | ||
<script type="text/javascript" src="aes-compressed.js"></script> | ||
<script type="text/javascript" src="aes-compressed-realm.js"></script> | ||
<script type="text/javascript" src="aes-uncompressed.js"></script> | ||
<script type="text/javascript" src="des-compressed.js"></script> | ||
<script type="text/javascript" src="des-uncompressed.js"></script> | ||
<script type="text/javascript" src="rabbit-compressed.js"></script> | ||
<script type="text/javascript" src="rabbit-uncompressed.js"></script> | ||
<script type="text/javascript" src="rc4-compressed.js"></script> | ||
<script type="text/javascript" src="rc4-uncompressed.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters