jcs / rubywarden

An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
ISC License
593 stars 49 forks source link

Problem in implementation of API with python #91

Closed ehsanjso closed 5 years ago

ehsanjso commented 5 years ago

the problem is I am ok with the process on password and I could login and sync successfully but there is a problem in decrypting data. in the documentation this part is not crystal clear for me there were questions about key and Mackey and where exactly they come from but after many tries, I think I understand what they are but I have a problem in decrypting data. I first decrypt the key that Bitwarden sent me in my login request with the master key and after that this would give me a key that I should use it to decrypt my data with this key in this part of implementation I have problems in python that the key length in the second part is not correct. so I would be happy if you clear if I understand the API ? and also if there is a good python library to help in enc and dec of data?