<commit_before>using System;
using System.Security.Cryptography;

namespace Unicache.Plugin
{
    public class SimpleCacheLocator : ICacheLocator
    {
        public string CreatePath(string url)
        {
            return this.CreateHash(url);
        }

        private string CreateHash(string url)
        {
            SHA1 sha = new SHA1CryptoServiceProvider();
            byte[] request = System.Text.Encoding.UTF8.GetBytes(url);
            byte[] result = sha.ComputeHash(request);
            return BitConverter.ToString(result).ToLower().Replace("-", "");
        }
    }
}<commit_msg>issues/9 refactor(SimpleCacheLocator): export digest function<commit_after>namespace Unicache.Plugin
{
    public class SimpleCacheLocator : ICacheLocator
    {
        public string CreatePath(string url)
        {
            return Digest.SHA1(url);
        }
    }
}
{'fraction_non_alphanumeric': 0.09529276693455797, 'fraction_numerical': 0.0057405281285878304, 'mean_word_length': 2.4466403162055337, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4553301', 'n_tokens_mistral': 237, 'n_tokens_neox': 236, 'n_words': 48}