Skip to content

Commit

Permalink
v1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
smford committed Nov 8, 2021
1 parent d92287d commit 22800ae
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
)

const applicationName string = "tplink-hs1x-cli"
const applicationVersion string = "v1.3.1"
const applicationVersion string = "v1.3.2"

type SimpleResponse struct {
System struct {
Expand Down Expand Up @@ -405,7 +405,11 @@ func decrypt(ciphertext []byte) string {
func encrypt(plaintext string) []byte {
n := len(plaintext)
buf := new(bytes.Buffer)
binary.Write(buf, binary.BigEndian, uint32(n))
err := binary.Write(buf, binary.BigEndian, uint32(n))

if err != nil {
log.Fatal(err)
}
ciphertext := []byte(buf.Bytes())

key := byte(0xAB)
Expand Down

0 comments on commit 22800ae

Please sign in to comment.