forked from softvar/secure-ls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…or encryptionNamespace
- Loading branch information
1 parent
c362ebf
commit 07e0f5b
Showing
13 changed files
with
2,176 additions
and
2,390 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 |
---|---|---|
|
@@ -116,8 +116,16 @@ encoding method is choosen. | |
`encryptionNamespace` is used to make multiple instances with different `encryptionSecret` | ||
and/or different `encryptionSecret` possible. | ||
|
||
var ls1 = new SecureLS({encodingType: 'des', encryptionSecret: 'my-secret-key-1'}); | ||
var ls2 = new SecureLS({encodingType: 'aes', encryptionSecret: 'my-secret-key-2'}); | ||
var ls1 = new SecureLS({ | ||
encodingType: 'des', | ||
This comment has been minimized.
Sorry, something went wrong. |
||
encryptionSecret: 'my-secret-key-1', | ||
This comment has been minimized.
Sorry, something went wrong.
jas-
|
||
encryptionNamespace: 'user-1' | ||
}); | ||
var ls2 = new SecureLS({ | ||
encodingType: 'aes', | ||
encryptionSecret: 'my-secret-key-2', | ||
encryptionNamespace: 'user-2' | ||
}); | ||
|
||
**Examples:** | ||
|
||
|
Oops, something went wrong.
1 comment
on commit 07e0f5b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See the code comments for more information
You should be using AES, the speed up from DES shouldn’t negate use of strong ciphers