Structures
The following structures are available globally.
-
Advanced Encryption Standard (AES)
For testing purpose created a static instance called
default
which takes a key of 16 or 32 characters and an iv of 16 characters for Production try to create your own AES object
See morevar aes: AES? = { var key128 = "1qaz2wsx3edc4rfv" let iv = "5tgb6yhn7ujm8ikl" return AES(key: key128, iv: iv) }()
Declaration
Swift
public struct AES