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