Esempio n. 1
0
 private static byte[] GenSign(AesKey key, ulong id, long ticks, byte[] data = null) =>
 key.Hash(BitConverter.GetBytes(id)
          .Concat(BitConverter.GetBytes(ticks))
          .Concat(data ?? new byte[0]).ToArray())
 .Take(16).ToArray();
Esempio n. 2
0
 public AesSherableKey GenKey(AesKey key) => AesSherableKey.Parse(key.Hash(ToByteArray()));