using System;
using System.Security.Cryptography;

namespace Com.Bocom.OpenApi
{
    namespace Security
    {
        namespace KeyGen
        {
            public class SM4KeyGen
            {
                public static string GenSM4Key()
                {
                    AesCryptoServiceProvider key = new AesCryptoServiceProvider();
                    key.KeySize = 128;
                    key.GenerateKey();
                    return Convert.ToBase64String(key.Key);
                }
            }
        }
    }
}