Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyPair #7

Open
SeekingCoding opened this issue Jan 6, 2023 · 0 comments
Open

KeyPair #7

SeekingCoding opened this issue Jan 6, 2023 · 0 comments

Comments

@SeekingCoding
Copy link

on Android fetch client_static_keypair from /data/data/com.whatsapp/shared_prefs/keystore.xml

KEYPAIR = KeyPair.from_bytes(
base64.b64decode(b"YJa8Vd9pG0KV2tDYi5V+DMOtSvCEFzRGCzOlGZkvBHzJvBE5C3oC2Fruniw0GBGo7HHgR4TjvjI3C9AihStsVg==")
)
WA_PUBLIC = PublicKey(
base64.b64decode(b"qJWvSttNopqgQ2CgXYTc4jmSUKWd1Rv2QTMbQyYpKwY=")
)

I got the content from "keystore.xml" is like this:

[2,"HODbAJipnZE1REOKLrYB0g4o+1Q3q0k9KoiU4AlWY2mV0lcg8jVGK7+Vx004d\/BVXtuAj6G6ljou8KsOPod7Bw","lMx9fT4WNLtKodLyS36C9w","YBZ7cA","fDBFW5wuZ0nemu4K8\/djcA"] [0,"2LzPQ0FZlbNU8TGm2AtT84MOL8FW8E\/P7JbP9CTMcUdc8cyMbUtM9tMBkpH\/cQUH\/LJjuLH7Kdso7vlhK5tE6Rr2zjvKjDNNwY\/8Y498gnQ","+xte67puXte\/y3sV"] qJWvSttNopqgQ2CgXYTc4jmSUKWd1Rv2QTMbQyYpKwY

Its format is different from the keypair in example code "YJa8Vd9pG0KV2tDYi5V+DMOtSvCEFzRGCzOlGZkvBHzJvBE5C3oC2Fruniw0GBGo7HHgR4TjvjI3C9AihStsVg==".

How can I fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant