add game manifest hash algorithm
This commit is contained in:
@@ -3,9 +3,6 @@ using System;
|
|||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace Assets.Editor.RootMotion
|
|
||||||
{
|
|
||||||
public class ManifestEntry
|
public class ManifestEntry
|
||||||
{
|
{
|
||||||
public static byte[] CalHame(ulong checksum, ulong size, byte[] name)
|
public static byte[] CalHame(ulong checksum, ulong size, byte[] name)
|
||||||
@@ -29,5 +26,10 @@ namespace Assets.Editor.RootMotion
|
|||||||
Base32 base32 = new Base32();
|
Base32 base32 = new Base32();
|
||||||
return base32.Encode(bytes);
|
return base32.Encode(bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string CalHameString(ulong checksum, ulong size, string name)
|
||||||
|
{
|
||||||
|
return CalHameString(checksum, size, Encoding.UTF8.GetBytes(name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user