Latest 1.0
Homepage https://github.com/RomainQuidet/LessPassCore
License GPL-3.0
Platforms ios 9.0
Authors

LessPass core framework for iOS

Origin

This framework is a port of the LessPass original framework in js : LessPass

License

Released under the GPL v3 license

Integration

This framework requires iOS 9.0+

It is compatible with ObjC and Swift.

With cocoapods:

Add this to your podfile

pod 'LessPassCore', '~> 1.0'

With Carthage:

Add this to your cartfile

github "RomainQuidet/LessPassCore" ~> 1.0

Usage

ObjC

#import <LessPassCore/LessPassCore.h>

// Create a profile
LPProfile *profile = [[LPProfile alloc] initWithSite:@"example.org" andLogin:@"[email protected]"];

// Configure it as user wants
profile.options.symbols = NO;
profile.options.lowercase = NO;
profile.options.uppercase = NO;
profile.options.length = 6;
profile.options.counter = 3;

// Generate the password from the master password given by the user
NSString *masterPassword = @"password";
NSString *generatedPassword = [LPCore generatePasswordWithProfile:profile andMasterPassword:masterPassword];

Swift

import LessPassCore

// Create a profile
let profile = LPProfile(site: "example.org", andLogin: "[email protected]")

// Configure it as user wants
profile.options.symbols = false
profile.options.lowercase = false
profile.options.uppercase = false
profile.options.length = 6
profile.options.counter = 3

// Generate the password from the master password given by the user
let generatedPassword = LPCore.generatePassword(with: profile, andMasterPassword: "password")

Latest podspec

{
    "name": "LessPassCore",
    "version": "1.0",
    "summary": "LessPass core framework for iOS in ObjC",
    "description": "Stateless Password Manager library for iOS",
    "homepage": "https://github.com/RomainQuidet/LessPassCore",
    "license": {
        "type": "GPL-3.0",
        "file": "LICENSE"
    },
    "authors": {
        "Romain Quidet": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/RomainQuidet/LessPassCore.git",
        "tag": "v1.0"
    },
    "source_files": [
        "LessPassCore/**/*.{h,m}",
        "LessPassCore/libtommath/*.{h,c}"
    ],
    "public_header_files": [
        "LessPassCore/LessPassCore.h",
        "LessPassCore/LPCore.h",
        "LessPassCore/LPProfile.h",
        "LessPassCore/LPProfileCrypto.h",
        "LessPassCore/LPProfileOptions.h"
    ]
}

Pin It on Pinterest

Share This