Skip to content

Objective C common classes used in a few of my projects

License

Notifications You must be signed in to change notification settings

RobertSalguero/JFBCrypt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JFBCrypt

An objective-c implementation of bcrypt.

Taken from https://github.com/jayfuerstenberg/JFCommon but cut back to only include bcrypt.

Usable on iOS, MacOS, WatchOS, tvOS

Usage

Encode a password

let password = "qwerty"
let encoded = JFBCrypt.hashPassword(password, withSalt: JFBCrypt.generateSalt(withNumberOfRounds: 8))

Check a password

let passwordTry = "asdfgh"
JFBCrypt.hashPassword(passwordTry, withSalt: encoded) == encoded

About

Objective C common classes used in a few of my projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 98.7%
  • Ruby 1.3%