Instance Methodswift-crypto 3.12.2_CryptoExtras
encrypt(_:padding:)
Encrypt a message with this key, using the specified padding mode.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func encrypt<D>(_ data: D, padding: _RSA.Encryption.Padding) throws -> Data where D : DataProtocol