|
using System;
|
|
using System.Text;
|
|
namespace sharp.hashing
|
|
{
|
|
public abstract class HashBase : IHash {
|
|
|
|
UTF8Encoding utf8 = new UTF8Encoding();
|
|
|
|
public abstract byte[] compute(byte[] data);
|
|
public byte[] compute(string data)
|
|
{
|
|
return compute(utf8.GetBytes(data));
|
|
}
|
|
}
|
|
}
|