package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Aug 23, 2018
License: MIT
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Encrypt takes in a payload and returns an encrypted value.
Cipher provides methods to encrypt and decrypt values
NewCipher returns a new aes Cipher for encrypting values
Decrypt a value from a Payload to its original string
Encrypt a value for use in a Payload
Payload represents the information encoded in cookies.
It contains a string Value, a timestamp Timestamp, a byte Signature, and a Cipher.
Decrypt takes in a name, an encrypted value, a salt, expiration time and a cipher, and decrypts
the value into a payload.
New returns a new payload.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.