Skip to content

RSA Encrypted Sharing Keys Unsupported #1

@ScottEvtuch

Description

@ScottEvtuch

RSA encrypted sharing keys have a null key value and return the following exception:

ConvertFrom-LPHexString : Cannot validate argument on parameter 'String'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command 
again.
At PSLastPass\Public\Get-LPAccounts.ps1:128 char:87
+ ... hareData[5] | ConvertFrom-LPEncryptedString | ConvertFrom-LPHexString
+                                                   ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:String) [ConvertFrom-LPHexString], ParameterBindingValidationException

Need to implement some logic to import the "PRIK" type object and decrypt this type of sharing key with it.

Reference to how this is done in the Python module: https://github.com/konomae/lastpass-python/blob/5063911b789868a1fd9db9922db82cdf156b938a/lastpass/parser.py#L104

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions