All Projects → backslash-f → aescryptable

backslash-f / aescryptable

Licence: MIT license
AES encryption/decryption with random iv. Swift 5 and up.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to aescryptable

Cryptoswift
CryptoSwift is a growing collection of standard and secure cryptographic algorithms implemented in Swift
Stars: ✭ 8,846 (+30403.45%)
Mutual labels:  aes, commoncrypto
CppSecurity
C++ Security Library
Stars: ✭ 24 (-17.24%)
Mutual labels:  aes
ZipArchive
A single-class pure VB6 library for zip with ASM speed
Stars: ✭ 38 (+31.03%)
Mutual labels:  aes
CryptoKnight
CryptoKnight is a general purpose cryptography desktop app
Stars: ✭ 18 (-37.93%)
Mutual labels:  aes
Bytes
Swift Library for working with sequences of Bytes (aka [UInt8])
Stars: ✭ 35 (+20.69%)
Mutual labels:  swift-package-manager
cryptalk
HTML5/Node.js based, client side (E2EE) encrypted instant chat
Stars: ✭ 73 (+151.72%)
Mutual labels:  aes
SupportEmail
Pre-populates emails with support information in iOS/iPadOS apps
Stars: ✭ 20 (-31.03%)
Mutual labels:  swift-package-manager
SwiftZip
Swift wrapper for libzip — library for reading, creating, and modifying zip archives.
Stars: ✭ 44 (+51.72%)
Mutual labels:  swift-package-manager
aesCbc
aes-cbc加密解密
Stars: ✭ 68 (+134.48%)
Mutual labels:  aes
SwiftDown
📦 A themable markdown editor component for your SwiftUI apps.
Stars: ✭ 203 (+600%)
Mutual labels:  swift-package-manager
Cider
The Missing Apple Music SDK. Written in Swift.
Stars: ✭ 57 (+96.55%)
Mutual labels:  swift-package-manager
Table
CLI tables in Swift
Stars: ✭ 53 (+82.76%)
Mutual labels:  swift-package-manager
Match3Kit
Library for simple Match3 games.
Stars: ✭ 38 (+31.03%)
Mutual labels:  swift-package-manager
CSV
A simple CSV file parser and serializer
Stars: ✭ 31 (+6.9%)
Mutual labels:  swift-package-manager
UInt256
An UInt256 library written in Swift 4
Stars: ✭ 20 (-31.03%)
Mutual labels:  swift-package-manager
EggSeed
Command Line Tool for Starting Your Swift Packages with Continuous Integration
Stars: ✭ 21 (-27.59%)
Mutual labels:  swift-package-manager
Tablier
A micro-framework for Table Driven Tests.
Stars: ✭ 33 (+13.79%)
Mutual labels:  swift-package-manager
optiga-trust-m
OPTIGA™ Trust M Software Framework
Stars: ✭ 86 (+196.55%)
Mutual labels:  aes
simpira384
An AES-based 384 bit permutation.
Stars: ✭ 18 (-37.93%)
Mutual labels:  aes
xxHash-Swift
xxHash framework in Swift.
Stars: ✭ 22 (-24.14%)
Mutual labels:  swift-package-manager

swift-version swift-package-manager platform build-status license

AESCryptable

Provides Advanced Encryption Standard (AES) capabilities.

Integration

Xcode 11+

AESCryptable Xcode 11 SPM

(More on the topic from WWDC 2019: Adopting Swift Packages in Xcode and Creating Swift Packages.)

Via Package.swift

In your Package.swift, add AESCryptable as a dependency:

dependencies: [
  // 🔐 AES encryption/decryption with random iv. Swift 5 and up.
  .package(url: "https://github.com/backslash-f/aescryptable", from: "1.0.0")
],

Associate the dependency with your target:

targets: [
  .target(name: "App", dependencies: ["AESCryptable"])
]

Run: swift build

Usage

import AESCryptable

do {
  // encrypt
  let aes = try AES(keyString: "01234567890123456789012345678901")
  let encryptedData = try aes.encrypt("The black knight always triumphs!")

  // decrypt
  let decryptedString = try aes.decrypt(encryptedData)
  print(decryptedString) // The black knight always triumphs!

} catch {
  print(error)
}

(Refer to the test class for a high-level overview.)

Demo

Clone the repo and use AESCryptable.playground to see the code in action:

AESCryptable Demo

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].