Giter VIP home page Giter VIP logo

xtsecurity's Introduction

XTSecurity

XTSecurityUtil是一个iOS加密、解密算法工具库,里面包含DES、AES、MD5、SHA512、Base64等加密、解密、编码算法。

使用方法: 导入XTSecurityUtil文件下的所有文件, import "XTSecurityUtil.h"

各个方法: #pragma mark - AES加密、解密

  • (NSData*)encryptAESData:(NSString*)string;
  • (NSString*)decryptAESData:(NSData*)data;

#pragma mark - DES加密、解密

  • (NSData *)encryptDESData:(NSString *)string;
  • (NSString *)decryptDESData:(NSData *)data;

#pragma mark - Base64 加密、解密

  • (NSString*)encodeBase64String:(NSString *)input;
  • (NSString*)decodeBase64String:(NSString *)input;
  • (NSString*)encodeBase64Data:(NSData *)data;
  • (NSString*)decodeBase64Data:(NSData *)data;

#pragma mark - MD5 加密

  • (NSString *)md5:(NSString *)str;

#pragma mark - SHA512加密

  • (NSString*) getSHA512String:(NSString*)s;

xtsecurity's People

Contributors

yongca887 avatar

Stargazers

 avatar RedApple avatar  avatar Xiaohai.lin avatar SilenceZhou avatar  avatar 岩尘雨 avatar  avatar Himma avatar 胡杰 avatar

Watchers

James Cloos avatar  avatar  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.