NoEncryptor
public struct NoEncryptor : Encryptor
A struct that provides no encryption.
-
Initializes a new instance of
NoEncryptor.Declaration
Swift
public init() -
encrypt(data:Asynchronous) Returns the given data without performing any encryption.
Declaration
Swift
public func encrypt(data: Data) async throws -> DataParameters
dataThe data to “encrypt”.
Return Value
The same data that was provided.
-
decrypt(data:Asynchronous) Returns the given data without performing any decryption.
Declaration
Swift
public func decrypt(data: Data) async throws -> DataParameters
dataThe data to “decrypt”.
Return Value
The same data that was provided.