mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 14:32:14 +08:00
format file tag
This commit is contained in:
parent
a28ed463e7
commit
3d22751c7a
@ -75,7 +75,7 @@ func EncryptString(text string) string {
|
||||
return ""
|
||||
}
|
||||
d := []byte(text)
|
||||
key := []byte(ids.GetUniqueId("cloudpan189", 16))
|
||||
key := []byte(ids.GetUniqueId("aliyunpan", 16))
|
||||
r, e := crypto.EncryptAES(d, key)
|
||||
if e != nil {
|
||||
return text
|
||||
@ -98,7 +98,7 @@ func DecryptString(text string) string {
|
||||
|
||||
// use the machine unique id as the key
|
||||
// but in some OS, this key will be changed if you reinstall the OS
|
||||
key := []byte(ids.GetUniqueId("cloudpan189", 16))
|
||||
key := []byte(ids.GetUniqueId("aliyunpan", 16))
|
||||
r, e := crypto.DecryptAES(d, key)
|
||||
if e != nil {
|
||||
return text
|
||||
|
@ -67,7 +67,7 @@ const (
|
||||
// DefaultPrintFormat 默认的下载进度输出格式
|
||||
DefaultPrintFormat = "\r[%s] ↓ %s/%s %s/s in %s, left %s ............"
|
||||
//DownloadSuffix 文件下载后缀
|
||||
DownloadSuffix = ".cloudpan189-downloading"
|
||||
DownloadSuffix = ".aliyunpan-downloading"
|
||||
//StrDownloadInitError 初始化下载发生错误
|
||||
StrDownloadInitError = "初始化下载发生错误"
|
||||
// StrDownloadFailed 下载文件失败
|
||||
|
Loading…
Reference in New Issue
Block a user