starcrypto/crypto.go

27 lines
631 B
Go

package starcrypto
import (
"b612.me/starcrypto/hashx"
"b612.me/starcrypto/legacy"
)
func String(bstr []byte) string {
return hashx.HexString(bstr)
}
func VicqueEncodeV1(srcdata []byte, key string) []byte {
return legacy.VicqueEncodeV1(srcdata, key)
}
func VicqueDecodeV1(srcdata []byte, key string) []byte {
return legacy.VicqueDecodeV1(srcdata, key)
}
func VicqueEncodeV1File(src, dst, pwd string, shell func(float64)) error {
return legacy.VicqueEncodeV1File(src, dst, pwd, shell)
}
func VicqueDecodeV1File(src, dst, pwd string, shell func(float64)) error {
return legacy.VicqueDecodeV1File(src, dst, pwd, shell)
}