Skip to content

ASNEncryption is <CommonCrypto/CommonDigest> and <Security/Security.h>'s wrapper.

Notifications You must be signed in to change notification settings

yuuki1224/ASNEncryption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#ASNEncryption ASNEncryption is data encryption in cocoa.

NSString *encyptedString = [ASNHashEncryption md5WithString:@"helloworld"];
// fc5e038d38a57032085441e7fe7010b0
$md5 -s "helloworld"
=> MD5 ("helloworld") = fc5e038d38a57032085441e7fe7010b0

##Support ###AES(Advanced Encryption Standard) ###RSA ###hash

  • md2, md4, md5
  • sha1, sha224, sha256, sha384, sha512

##NSData base64 Encode/Decode We can use the API that NSdata have to encode/decode by base64.

NSString *deviceTokenBase64 = [deviceToken base64EncodedStringWithOptions:0]; //default option
NSData* deviceTokenData = [[NSData alloc] initWithBase64Encoding:deviceTokenBase64];

##base64とはなんですか? 64種類の英数字のみでマルチバイト文字やバイナリファイルなどを表現する. A-Z, a-z, 0-9, +/=で表現される. base64は、暗号化ではない. 主に電子メールで使用され、画像/音声は、バイナリファイルでそのままでは、送受信できない。テキストファイルに変換する必要がある.

About

ASNEncryption is <CommonCrypto/CommonDigest> and <Security/Security.h>'s wrapper.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published