Documentation ¶
Overview ¶
Package password provides utilities for creating and verifying macOS passwords for MDM account configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMatch = errors.New("password does not match")
ErrNoMatch is returned by Verify if the password does not match.
Functions ¶
func Verify ¶
func Verify(plaintext string, h SaltedSHA512PBKDF2Dictionary) error
Verify verifies a plaintext password against a existing SALTED-SHA512-PBKDF2 password dictionary.
Types ¶
type SaltedSHA512PBKDF2Dictionary ¶
type SaltedSHA512PBKDF2Dictionary struct { Iterations int `plist:"iterations"` Salt []byte `plist:"salt"` Entropy []byte `plist:"entropy"` }
SaltedSha512PBKDF2Dictionary is a SHA512 PBKDF2 dictionary.
func SaltedSHA512PBKDF2 ¶
func SaltedSHA512PBKDF2(plaintext string) (SaltedSHA512PBKDF2Dictionary, error)
SaltedSHA512PBKDF2 creates a SALTED-SHA512-PBKDF2 dictionary from a plaintext password. The hash function will use a 128 bit salt.
Click to show internal directories.
Click to hide internal directories.