# Cryptography

class Cryptography(pubKeyFile: String)
Content copied to clipboard

Class that contains functions for symmetric and asymmetric cryptography.

## Constructors

Cryptography
Link copied to clipboard
fun Cryptography(pubKeyFile: String)
Content copied to clipboard

## Properties

pubKeyFile
Link copied to clipboard
private val pubKeyFile: String
Content copied to clipboard

## Functions

encryptData
Link copied to clipboard
fun encryptData(dataToEncrypt: String): String
Content copied to clipboard

Function for encrypt data with RSA algorithm and saved public key.