Added support for both standard and custom characters sets

This commit is contained in:
Mario Sangiorgio
2015-08-08 00:40:19 +01:00
parent 77a7b536fd
commit e4332530eb
3 changed files with 21 additions and 10 deletions

View File

@@ -26,7 +26,9 @@ typedef NS_OPTIONS(NSUInteger, MPPasswordCharacterFlags) {
*
* @return new password with only the allowed characters.
*/
+ (NSString *)passwordWithCharactersets:(MPPasswordCharacterFlags)allowedCharacters length:(NSUInteger)theLength;
+ (NSString *)passwordWithCharactersets:(MPPasswordCharacterFlags)allowedCharacters
withCustomCharacters:(NSString*)customCharacters
length:(NSUInteger)theLength;
/**
* Creats a password based on the supplied string
*