forked from FooBarWidget/encrypted_cookie_store
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the encryption cipher types configurable and document possible J…
…Ruby pitfalls. Thanks Milhouse!
- Loading branch information
1 parent
65e3f02
commit 4e46f13
Showing
3 changed files
with
33 additions
and
6 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
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,6 +1,3 @@ | ||
module EncryptedCookieStoreConstants | ||
IV_CIPHER_TYPE = "aes-128-ecb" | ||
DATA_CIPHER_TYPE = "aes-256-cfb".freeze | ||
ENCRYPTION_KEY_SIZE = 32 | ||
IV_SIZE = 16 | ||
end |