Swift 字符串加密 SweetHMAC

码农软件 · 软件分类 · 加密/解密软件包 · 2019-09-30 18:41:55

软件介绍

SweetHMAC 是个极小,简单易用的 Swift 类,使用 HMAC 算法加密字符串。

字符串扩展:

// Will output this string: e470f785afb708cd8c2a31860642fd11
"I'm going to make him an offer he can't refuse".HMAC(.MD5, secret:"Vito Corleone")

HMAC:

let quote = "I'm going to make him an offer he can't refuse"
let author = "Vito Corleone"
// Create a SweetHMAC instance with your message and secret strings
let hmacEncrypt:SweetHMAC = SweetHMAC(source: quote, secret: author)
// Pick some computed HMAC output based on some algorithm using "HMAC" method...
let md5 = hmacEncrypt.HMAC(.MD5)
// ...or do it more "Sweet" like this
let md5 = SweetHMAC(source: quote, secret: author).HMAC(.MD5)


本文地址:https://codercto.com/soft/d/15751.html

Web程序设计

Web程序设计

(美)塞巴斯塔 / 王春智、刘伟梅 / 清华大学出版社 / 2011-1 / 69.00元

《Web程序设计(第6版)》浓墨重彩地描述客户端和服务器端Web开发技术,深入分析Web站点构造和维护工具,并透彻讲解主流Web编程语言。《Web程序设计(第6版)》对上一版内容做了全面细致的修改,并融入了NetBeans 6.7、Visual Studio 8和ASP.NET Web服务等最新技术。《Web程序设计(第6版)》既可以作为高校教材,也可供专业Web编程人员参考使用。一起来看看 《Web程序设计》 这本书的介绍吧!

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具