starcrypto/crypto.go

27 lines
631 B
Go
Raw Normal View History

2020-07-20 11:16:23 +08:00
package starcrypto
import (
"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 {
return hashx.HexString(bstr)
2020-07-20 11:16:23 +08:00
}
func VicqueEncodeV1(srcdata []byte, key string) []byte {
return legacy.VicqueEncodeV1(srcdata, key)
2020-07-20 11:16:23 +08:00
}
func VicqueDecodeV1(srcdata []byte, key string) []byte {
return legacy.VicqueDecodeV1(srcdata, key)
2020-07-20 11:16:23 +08:00
}
func VicqueEncodeV1File(src, dst, pwd string, shell func(float64)) error {
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 {
return legacy.VicqueDecodeV1File(src, dst, pwd, shell)
2020-07-20 11:16:23 +08:00
}