Code Monkey home page Code Monkey logo

secrecyswift's People

Contributors

adow avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

secrecyswift's Issues

电码本模式(Electronic Codebook Book (ECB));[readme 写的是==> EBC]

分组密码有五种工作体制:
1.电码本模式(Electronic Codebook Book (ECB));[readme 写的是==> EBC]
2.密码分组链接模式(Cipher Block Chaining (CBC));
3.计算器模式(Counter (CTR));
4.密码反馈模式(Cipher FeedBack (CFB));
5.输出反馈模式(Output FeedBack (OFB))

update fail

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)

用aes加密时,位数低于8位为什么会报错呀?

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)")

CommonCrypto link error, can't find arm64/armv7s architecture in iPhoneOS

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:

  1. Delete CommonCrypto folder. On your application targets Build Settings, Import Paths setting, delete CommonCrypto. And delete /usr/lib/system/ on Library Search Paths.
  2. Add "#import <CommonCrypto/CommonCrypto.h>" in your project's xxx-Bridging-Header.h file.
    3.Find "import CommonCrypto" in this project and delete it. Then you can run your project in iPhoneOS successfully.

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.