Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptCipherText ¶
func DecryptCipherText(cipherText CipherText, password []byte) (aes.PlainText, error)
decrypt scrypt cipher
Types ¶
type CipherText ¶
type CipherText struct { CipherText aes.CipherText `json:"cipher_text"` ScryptKey Key `json:"scrypt_key"` Version uint8 `json:"version"` }
func NewCipherText ¶
func NewCipherText(plainText []byte, password []byte) (CipherText, error)
Create new ScryptCipherText
func (*CipherText) Marshal ¶
func (s *CipherText) Marshal() ([]byte, error)
exports CipherText as json
Click to show internal directories.
Click to hide internal directories.