Documentation
¶
Index ¶
- type Key
- type Pad
- type SparkleCipher
- func (k *SparkleCipher) DecryptAsRequest(path string, body string, result any) error
- func (k *SparkleCipher) DecryptAsRequestBytes(path string, body string) ([]byte, error)
- func (k *SparkleCipher) EncryptAsResponse(path string, body interface{}) []byte
- func (k *SparkleCipher) EncryptAsResponseByBytes(path string, data []byte) []byte
- func (k *SparkleCipher) GetStarCC(body interface{}, serverTime string) string
- func (k *SparkleCipher) GetStarCCByBytes(body []byte, serverTime string) string
- type SparkleCipherRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SparkleCipher ¶
type SparkleCipher struct {
BLOCK_SIZE int
// contains filtered or unexported fields
}
func NewSparkleCipher ¶
func NewSparkleCipher(key Key, padding Pad) *SparkleCipher
func (*SparkleCipher) DecryptAsRequest ¶
func (k *SparkleCipher) DecryptAsRequest(path string, body string, result any) error
func (*SparkleCipher) DecryptAsRequestBytes ¶
func (k *SparkleCipher) DecryptAsRequestBytes(path string, body string) ([]byte, error)
func (*SparkleCipher) EncryptAsResponse ¶
func (k *SparkleCipher) EncryptAsResponse(path string, body interface{}) []byte
func (*SparkleCipher) EncryptAsResponseByBytes ¶
func (k *SparkleCipher) EncryptAsResponseByBytes(path string, data []byte) []byte
func (*SparkleCipher) GetStarCC ¶
func (k *SparkleCipher) GetStarCC(body interface{}, serverTime string) string
func (*SparkleCipher) GetStarCCByBytes ¶
func (k *SparkleCipher) GetStarCCByBytes(body []byte, serverTime string) string
Click to show internal directories.
Click to hide internal directories.