decrypt

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptChunk

func DecryptChunk(chunk []byte, blowfishKey string) []byte

DecryptChunk decrypts a chunk of data using the blowfish key.

func DecryptDownload

func DecryptDownload(source []byte, trackID string) []byte

DecryptDownload decrypts the downloaded track using the blowfish key.

func GetBlowfishKey

func GetBlowfishKey(trackID string) string

GetBlowfishKey generates a blowfish key using the track ID.

func GetSongFileName

func GetSongFileName(track *TrackType, quality int) string

GetSongFileName generates the song file name using encryption.

func Md5Hash

func Md5Hash(data string) string

Md5Hash generates an MD5 hash for the given string data.

Types

type TrackType

type TrackType struct {
	MD5_ORIGIN    string
	SNG_ID        string
	MEDIA_VERSION string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL