Discover Packages
github.com/sugatpoudel/crypt
internal
secure
package
Version:
v0.0.0-...-fe3d7fc
Opens a new window with list of versions in this module.
Published: Jan 9, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
DecodeMessage decodes the given message by separating out the token
and comparing it with the derived token, returning an error if the
message was invalid
SignMessage signs the given message using hmac and appends it to
the given message
type AesCrypto struct {
}
AesCrypto is an AES implementation of a Crypto with key size of 256 bits
InitAesCrypto initializes an AesCrypto
Decrypt decrypts the given Crypt using AES
Encrypt encrypts the given Crypt using AES
Crypto defines a simple interface for any struct that can encrypt
and decrypt crypt data.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.