Documentation
¶
Index ¶
- func DecodeIrodsA(s []byte, uid int) (string, error)
- func EncodeIrodsA(s string, uid int, mtime time.Time) []byte
- func GenerateAuthResponse(challenge []byte, password string) string
- func GetEncoderRing(key string) []byte
- func ObfuscateNewPassword(newPassword, oldPassword, signature string) string
- func Scramble(toScramble, key, scramblePrefix string, blockChaining bool) string
- func ScrambleV2(newPassword, oldPassword, signature string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeIrodsA ¶ added in v0.4.0
Decode a password from a .irodsA file
func EncodeIrodsA ¶ added in v0.4.0
Encode passwords to store in the .irodsA file
func GenerateAuthResponse ¶
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 ObfuscateNewPassword ¶
ObfuscateNewPassword obfuscates new password for changing
func ScrambleV2 ¶
ScrambleV2 scrambles string (ver2)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.