2020-07-20 11:16:23 +08:00
|
|
|
package starcrypto
|
|
|
|
|
|
|
|
|
|
import (
|
2026-03-14 15:39:21 +08:00
|
|
|
"b612.me/starcrypto/hashx"
|
|
|
|
|
"b612.me/starcrypto/legacy"
|
2020-12-21 17:34:07 +08:00
|
|
|
)
|
|
|
|
|
|
2020-07-20 11:16:23 +08:00
|
|
|
func String(bstr []byte) string {
|
2026-03-14 15:39:21 +08:00
|
|
|
return hashx.HexString(bstr)
|
2020-07-20 11:16:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func VicqueEncodeV1(srcdata []byte, key string) []byte {
|
2026-03-14 15:39:21 +08:00
|
|
|
return legacy.VicqueEncodeV1(srcdata, key)
|
2020-07-20 11:16:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func VicqueDecodeV1(srcdata []byte, key string) []byte {
|
2026-03-14 15:39:21 +08:00
|
|
|
return legacy.VicqueDecodeV1(srcdata, key)
|
2020-07-20 11:16:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func VicqueEncodeV1File(src, dst, pwd string, shell func(float64)) error {
|
2026-03-14 15:39:21 +08:00
|
|
|
return legacy.VicqueEncodeV1File(src, dst, pwd, shell)
|
2020-07-20 11:16:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func VicqueDecodeV1File(src, dst, pwd string, shell func(float64)) error {
|
2026-03-14 15:39:21 +08:00
|
|
|
return legacy.VicqueDecodeV1File(src, dst, pwd, shell)
|
2020-07-20 11:16:23 +08:00
|
|
|
}
|