aboutsummaryrefslogtreecommitdiff
path: root/hotline/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/user.go')
-rw-r--r--hotline/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hotline/user.go b/hotline/user.go
index f3754d3..c4e0790 100644
--- a/hotline/user.go
+++ b/hotline/user.go
@@ -84,10 +84,10 @@ func (u *User) Write(p []byte) (int, error) {
return 8 + namelen, nil
}
-// encodeString takes []byte s containing cleartext and rotates by 255 into obfuscated cleartext.
+// EncodeString takes []byte s containing cleartext and rotates by 255 into obfuscated cleartext.
// The Hotline protocol uses this format for sending passwords over network.
// Not secure, but hey, it was the 90s!
-func encodeString(clearText []byte) []byte {
+func EncodeString(clearText []byte) []byte {
obfuText := make([]byte, len(clearText))
for i := 0; i < len(clearText); i++ {
obfuText[i] = 255 - clearText[i]