in the documentation i have the following snippet
$cipherText = $pure->encrypt($userId, $dataId, $plainText)
as seen in https://developer.virgilsecurity.com/docs/purekit/data-encryption/per-user-encryption/
however the method in the current release is
public function encrypt(string $userId, string $dataId, array $otherUserIds, array $roleNames,
VirgilPublicKeyCollection $publicKeys, string $plainText): string
i can pass empty arrays to otherUserIds and roleNames but i'm not sure how to properly initialize the publicKeys variable. We already specify the userId, aren't the public keys already known to virgil at that point for a given userid?
in the documentation i have the following snippet
$cipherText = $pure->encrypt($userId, $dataId, $plainText)as seen in https://developer.virgilsecurity.com/docs/purekit/data-encryption/per-user-encryption/
however the method in the current release is
i can pass empty arrays to otherUserIds and roleNames but i'm not sure how to properly initialize the publicKeys variable. We already specify the userId, aren't the public keys already known to virgil at that point for a given userid?