ChromaHash 1.0a

ChromaHash 1.0a

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Mattt Thompson.


Downloads

Total86
Week0
Month0

Installs

Apps5
powered by Segment

GitHub

Stars16
Watchers3
Forks1
Issues0
Contributors2
Pull Requests0

Code

Files2
LOCLines of Code 121


  • By
  • zdavison

iOSChromaHash

A port of Matt Thompsons ChromaHash JS secure password field. ( https://github.com/mattt/Chroma-Hash/ )

iOS Simulator Preview

Requirements

iOS5, ARC

Usage

Use it like a regular textfield, can be used from Interface Builder or in code. Has a few additional settings:

CHTextField *textField = [[CHTextField alloc] initWithFrame:CGRectZero];
textField.barCount = 4                    // number of bars, defaults to 3
textField.barWidth = 10                   // width of each bar, defaults to 10
textField.salt = @"twitter: @thingsdoer"  // salt for md5 hashing
textField.maskPath = nil;                 // allows you to provide a layer mask for the chroma
                                          // if your textField.borderStyle is UITextBorderStyleRoundedRect,
                                          // and this property is not set, the textField will mask appropriately
                                          // for the default UITextField style

Credits

Original concept by Matt Thompson.