Encryption

public protocol Encryption

Encryption protocol defines the interface about encryption.

  • Encrypt password string with encryption function.

    Declaration

    Swift

    func encrypt(password: String) -> CatCryptoResult

    Parameters

    password

    Password string for encrypt.

    Return Value

    Return a result when encryption task finish.