/
get.go
65 lines (54 loc) · 1.13 KB
/
get.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package crypto
import (
"github.com/deatil/go-cryptobin/tool"
)
// 获取数据
// Get Data
func (this Cryptobin) GetData() []byte {
return this.data
}
// 获取密码
// Get Key
func (this Cryptobin) GetKey() []byte {
return this.key
}
// 获取向量
// Get Iv
func (this Cryptobin) GetIv() []byte {
return this.iv
}
// 获取加密类型
// Get Multiple type
func (this Cryptobin) GetMultiple() Multiple {
return this.multiple
}
// 获取加密方式
// Get Mode type
func (this Cryptobin) GetMode() Mode {
return this.mode
}
// 获取补码算法
// Get Padding
func (this Cryptobin) GetPadding() Padding {
return this.padding
}
// 获取解析后的数据
// Get ParsedData
func (this Cryptobin) GetParsedData() []byte {
return this.parsedData
}
// 获取获取全部配置
// Get Config
func (this Cryptobin) GetConfig() *tool.Config {
return this.config
}
// 获取获取一个配置
// Get One Config
func (this Cryptobin) GetOneConfig(key string) any {
return this.config.Get(key)
}
// 获取错误信息
// Get Error list
func (this Cryptobin) GetErrors() []error {
return this.Errors
}