doy / rbw

unofficial bitwarden cli
https://git.tozt.net/rbw
Other
620 stars 83 forks source link

Add CipherString type 6 support #14

Closed jakeswenson closed 4 years ago

jakeswenson commented 4 years ago

Fixes #5.

Cipherstring type 6 is Rsa2048_OaepSha1_HmacSha256_B64. rbw currently supports Rsa2048_OaepSha1_B64 but not the deprecated option above.

The HMAC SHA256 deprecated versions append a | and the signature to the ciphertext. This fix simply ignores the appended signature, since it's a deprecated mode anyways.

This PR does not add support for Rsa2048_OaepSha256_HmacSha256_B64 since I have no way of testing it, although I'd imagine its the same.

doy commented 4 years ago

thanks!