Encrypt a string using asymmetric cryptography
Wraps SymmetricCrypto::encrypt()
public static encrypt ( HiddenString $plaintext, |
||
$plaintext | HiddenString | The message to encrypt |
$ourPrivateKey | Our private key | |
$theirPublicKey | Their public key | |
$encoding | mixed | Which encoding scheme to use? |
Результат | string | Ciphertext |