Skip to content
cHaLkdusTPublic

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Mink

[![CI Status](https://img.shields.io/travis/Julius Lundang/Mink.svg?style=flat)](https://travis-ci.org/Julius Lundang/Mink) Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Mink is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Mink', :git => 'https://github.com/cHaLkdusT/Mink'

Usage

Swift

let key = MinkKey(publicKey: "publicKey", privateKey: "privateKey")
let crypto = try? MinkCrypto(key: key)

let encryptedText = try? crypto?.encryptText("plain text")

let decryptedText = try? crypto?.decryptText("encrypted text")

Objective-C

NSString *publicKey = @"publicKey";
NSString *privateKey = @"privateKey";
MinkKey *key = [[MinkKey alloc] initWithPublicKey:publicKey privateKey:privateKey];
NSError *error;
MinkCrypto *crypto = [[MinkCrypto alloc] initWithKey:key error:&error];

NSString *encryptedText = [crypto encryptText:@"plain text" error:&error];

NSString *decryptedText = [crypto decryptText:@"encrypted text"
                                        error:&error];

Author

Julius Lundang, jwblundang+ios@gmail.com

License

Mink is available under the MIT license. See the LICENSE file for more info.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages