Skip to content

encrypt method signature does not match documentation #32

Description

@lekoala

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions