GithubHelp home page GithubHelp logo

isabella232 / nsstring-tbencryption Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thoughtbot/nsstring-tbencryption

0.0 0.0 0.0 224 KB

Tiny CocoaPod for NSString Encryption methods

License: MIT License

Ruby 21.96% Objective-C 78.04%

nsstring-tbencryption's Introduction

NSString+TBEncryption

TBEncryption is a super light weight category for encrypting strings with different encryption methods. Currently, we support the following encryption strategies:

  • MD5
  • SHA-1
  • Base64
  • XOR

Installation

We recommend installing with CocoaPods

pod 'NSString+TBEncryption', '~> 1.0'

Alternatively, you can just copy the category from the Source directory into your project.

Usage

The category methods are all prefixed with tb_. This is the best practice for categories on classes you don't own, but it also means that all of the TBEncryption methods will sort together.

The MD5, SHA-1, and Base64 methods are all pretty straightforward. The XOR hashing method takes an additional secret key argument. This is the string that will be XOR'd together with the string to create the hash. This key can be of any length (we loop back through the key if it's shorter than the string) If you use this method a lot, you might even create your own XOR method that wraps this one and always passes in the proper key.

nsstring-tbencryption's People

Contributors

gfontenot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.