scramble

package
v0.4.80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeIrodsA added in v0.4.0

func DecodeIrodsA(s []byte, uid int) (string, error)

Decode a password from a .irodsA file

func EncodeIrodsA added in v0.4.0

func EncodeIrodsA(s string, uid int, mtime time.Time) []byte

Encode passwords to store in the .irodsA file

func GenerateAuthResponse

func GenerateAuthResponse(challenge []byte, password string) string

GenerateAuthResponse generates an authentication response using the given challenge and password. The response is the MD5 hash of the first 64 bytes of the challenge and the padded password (padded to maxPasswordLength). The first 16 bytes of the hash are then base64 encoded to produce the final response string.

func GetEncoderRing

func GetEncoderRing(key string) []byte

GetEncoderRing returns encoder ring

func ObfuscateNewPassword

func ObfuscateNewPassword(newPassword, oldPassword, signature string) string

ObfuscateNewPassword obfuscates new password for changing

func Scramble

func Scramble(toScramble, key, scramblePrefix string, blockChaining bool) string

Scramble scrambles string

func ScrambleV2

func ScrambleV2(newPassword, oldPassword, signature string) string

ScrambleV2 scrambles string (ver2)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL