gui/pkg/crypt/lthn/hash.go
Claude f35e5c5e95
chore: migrate Snider deps from github.com to forge.lthn.ai
Update Enchantrix, Mining dependency paths and snider/i18n import
to forge.lthn.ai equivalents across go.mod files and imports.
Also update go-i18n pseudo-version to v0.0.1 tag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 21:40:42 +00:00

19 lines
493 B
Go

// Package lthn provides Lethean-specific cryptographic functions.
// It wraps the Enchantrix library's LTHN hash implementation.
package lthn
import (
"forge.lthn.ai/Snider/Enchantrix/pkg/crypt"
)
var service *crypt.Service
func init() {
service = crypt.NewService()
}
// Hash computes a Lethean-compatible hash of the input string.
// This is used for workspace identifiers and other obfuscation purposes.
func Hash(payload string) string {
return service.Hash(crypt.LTHN, payload)
}