password

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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