13 lines
239 B
Go
13 lines
239 B
Go
package secret
|
|
|
|
import (
|
|
"encoding/base64"
|
|
"testing"
|
|
|
|
"github.com/infraboard/mcube/v2/crypto/cbc"
|
|
)
|
|
|
|
func TestMustGenRandomKey(t *testing.T) {
|
|
t.Logf("%s", base64.StdEncoding.EncodeToString(cbc.MustGenRandomKey(cbc.AES_KEY_LEN_32)))
|
|
}
|