mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-05-07 19:29:35 +08:00
更新依赖,执行代码清理
This commit is contained in:
parent
0251d69748
commit
b9ae16a19a
@ -1,5 +1,4 @@
|
||||
using Milimoe.FunGame.Core.Entity;
|
||||
using Milimoe.FunGame.Core.Interface.Entity;
|
||||
using Milimoe.FunGame.Core.Library.Constant;
|
||||
|
||||
namespace Oshima.FunGame.OshimaModules.Skills
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using Milimoe.FunGame.Core.Entity;
|
||||
using Milimoe.FunGame.Core.Entity;
|
||||
using Milimoe.FunGame.Core.Library.Constant;
|
||||
|
||||
namespace Oshima.FunGame.OshimaModules.Skills
|
||||
|
@ -23,25 +23,25 @@ namespace Oshima.FunGame.WebAPI.Controllers
|
||||
{
|
||||
return msg.Encrypt(key);
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("gethmacsha256")]
|
||||
public string UseHMACSHA256(string msg, string key)
|
||||
{
|
||||
return Encryption.HmacSha256(msg, key);
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("getrsa")]
|
||||
public string GetRSA(string msg, string key)
|
||||
{
|
||||
return Encryption.RSADecrypt(msg, key);
|
||||
}
|
||||
|
||||
|
||||
[HttpGet("setrsa")]
|
||||
public string SetRSA(string msg, string key)
|
||||
{
|
||||
return Encryption.RSAEncrypt(msg, key);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 1: public, 2: private
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user