#include "components/crx_file/id_util.h"
#include <stdint.h>
#include <string_view>
#include "base/files/file_path.h"
#include "base/hash/sha1.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
#include "crypto/sha2.h"
#include "third_party/abseil-cpp/absl/strings/ascii.h"
namespace {
static void ConvertHexadecimalToIDAlphabet(std::string* id) { … }
}
namespace crx_file::id_util {
const size_t kIdSize = …;
std::string GenerateId(std::string_view input) { … }
std::string GenerateIdFromHash(base::span<const uint8_t> hash) { … }
std::string GenerateIdFromHex(const std::string& input) { … }
std::string GenerateIdForPath(const base::FilePath& path) { … }
std::string HashedIdInHex(const std::string& id) { … }
base::FilePath MaybeNormalizePath(const base::FilePath& path) { … }
bool IdIsValid(std::string_view id) { … }
}