Skip to content

Commit

Permalink
Merge 7372e69 into 7be2e97
Browse files Browse the repository at this point in the history
  • Loading branch information
konsultaner committed Jan 18, 2019
2 parents 7be2e97 + 7372e69 commit e57a905
Show file tree
Hide file tree
Showing 14 changed files with 2,274 additions and 2,508 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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',
encryptionSecret: 'my-secret-key-1',
encryptionNamespace: 'user-1'
});
var ls2 = new SecureLS({
encodingType: 'aes',
encryptionSecret: 'my-secret-key-2',
encryptionNamespace: 'user-2'
});

**Examples:**

Expand Down
1 change: 1 addition & 0 deletions dist/secure-ls.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ declare class SecureLS {
DES: CipherHelper;
RABBIT: CipherHelper;
RC4: CipherHelper;
ls: Storage;
enc: {
Latin1: Encoder;
_Utf8: Encoder;
Expand Down

0 comments on commit e57a905

Please sign in to comment.