RBPasswordManager Class Reference

Inherits from NSObject
Declared in RBPasswordManager.h

Overview

Generates and grades passwords.

  wordlistDelegate

A delegate to provide access to a word list.

@property (nonatomic, nullable) id<RBPasswordManagerWordlistDelegate> wordlistDelegate

Declared In

RBPasswordManager.h

– generateWithType:

Generates a new password of the given type.

- (nonnull NSString *)generateWithType:(RBPasswordType)type

Parameters

type

The type of password to generate.

Return Value

The generated password string.

Declared In

RBPasswordManager.h

– generateWithMinLength:andMaxLength:andType:

Generates a password of the given type between the given maximum and minimum lengths.

- (nonnull NSString *)generateWithMinLength:(int)minLen andMaxLength:(int)maxLen andType:(RBPasswordType)type

Parameters

minLen

The minimum length the generated password should be.

maxLen

The maximum length the generated password should be.

type

The type of password to generate.

Return Value

The generated password string.

Declared In

RBPasswordManager.h

– generateWithLength:andType:

Generates a password at the given length.

- (nonnull NSString *)generateWithLength:(int)len andType:(RBPasswordType)type

Parameters

len

The length that the password should be generated as.

type

The type of password to generate.

Return Value

The generated password string.

Declared In

RBPasswordManager.h

– scoreWithPassword:

Score the given password.

- (float)scoreWithPassword:(nonnull NSString *)password

Parameters

password

The password to score.

Return Value

The calculated password score.

Declared In

RBPasswordManager.h

+ gradeWithScore:

Grade the given password score.

+ (RBPasswordGrade)gradeWithScore:(float)score

Parameters

score

The score that the password was awarded.

Return Value

The RBPasswordGrade value.

Declared In

RBPasswordManager.h