adow / secrecyswift Goto Github PK
View Code? Open in Web Editor NEWAES/RSA/MD2/MD5/SHA1/SHA128/SHA384/SHA512 in Swift
License: MIT License
AES/RSA/MD2/MD5/SHA1/SHA128/SHA384/SHA512 in Swift
License: MIT License
分组密码有五种工作体制:
1.电码本模式(Electronic Codebook Book (ECB));[readme 写的是==> EBC]
2.密码分组链接模式(Cipher Block Chaining (CBC));
3.计算器模式(Counter (CTR));
4.密码反馈模式(Cipher FeedBack (CFB));
5.输出反馈模式(Output FeedBack (OFB))
Hello,
有没有升级到Swift 3.0的计划?
Best Regards
The following build commands failed:
CompileSwift normal arm64 /Users/hanzimacbook-pro/Desktop/XSWAPP/Carthage/Checkouts/SecrecySwift/SecrecySwift/SecrecyExtension.swift
CompileSwift normal arm64 /Users/hanzimacbook-pro/Desktop/XSWAPP/Carthage/Checkouts/SecrecySwift/SecrecySwift/HMAC.swift
CompileSwift normal arm64 /Users/hanzimacbook-pro/Desktop/XSWAPP/Carthage/Checkouts/SecrecySwift/SecrecySwift/RSA.swift
CompileSwift normal arm64 /Users/hanzimacbook-pro/Desktop/XSWAPP/Carthage/Checkouts/SecrecySwift/SecrecySwift/AES.swift
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(5 failures)
ileprivate func test_aes(){
let key = "0000000000000000"
let raw = "012345"
// let raw = "012345678"
// let raw = "123你好把呵呵"
// let raw = "你好!a"
let encrypt_1 = raw.aesEBCEncrypt(key)
print("aes encrypt hexString:(encrypt_1!.hexString)")
对比了之前的swift2下面编码出来的,同一串字符串,编码出来的不一样
Xcode 9.3, Swift 4项目, 引入此项目,按readme中的直接部署源码的方式已无法正常运行。
解决办法:
1.删除CommonCrypto文件夹,在项目 Targets 的 Build Settings 中 Import Paths 中删除 CommonCrypto, 在 Library Search Path 中删除 /usr/lib/system
2.在自己项目的xxx-Bridging-Header.h文件中,#import <CommonCrypto/CommonCrypto.h>
3.删除此项目中出现的import CommonCrypto,成功在真机上运行。
Xcode 9.3, Swift 4, following the readme file's "Add Source Code to your project", project can't run in iPhoneOS.
Solution:
Hi,RSA sign with MD5 unused,did you checked it?
您好~可以写一个兼容 OS X 的版本吗?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.