Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateLocalKey ¶
CreateLocalKey creates the key used by DecryptLocal. The default password is empty.
Example ¶
salt, err := hex.DecodeString("85b5adf5240b7d745b734fed4bf73f44d2d65231c7f334f91b862ca8228c4337") if err != nil { log.Fatal(err) } settingsKey := CreateLocalKey([]byte{}, salt) fmt.Println(hex.EncodeToString(settingsKey[:]))
Output: f064d0c8be23c407c96e4d642b8274be8dd6a9a310764fdcd67aa1a7d8f7041ead8a1a39e284e53ca4689b6c28e2d56ae5158b3e2ece485f8146c474b93f9a9f1f506004106c4f822a44b8568a8b01b82a050a0f3ec760d7a967896fa4356dee39d79b4502908dbc832d15a11b86bd24f7aafbe280284b5c599aeaab304940eb470e2405dfe3bd1660d9bbc3bcc48d2a8e3ce388f3e36e4cfc6862135586173f3d6f501564dac51ab213eca397761ad50a839c218d2a01c68d36fc00ea277e3ca739996d5e89b48f5c339c93b605358afeca37d04910e60367d6acca5e6aee871aa2c9fd837f0a615402e25c70dbb59916767b38adc43e05a7b721ae150ef55d
func DecryptLocal ¶
DecryptLocal decrypts a message. localKey should be created at CreateLocalKey.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.