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

How to pass a 256bit salt? #13

Open
hayr-hotoca opened this issue Aug 19, 2021 · 2 comments
Open

How to pass a 256bit salt? #13

hayr-hotoca opened this issue Aug 19, 2021 · 2 comments

Comments

@hayr-hotoca
Copy link

hayr-hotoca commented Aug 19, 2021

Thanks for your work. I want to pass a 256bit salt but the doc shows a string salt example. So can i pass a 256bit salt to this?

I tried to pass a buffer and it gave this error:

[[31,20,20,20],[0,0,1,0],[[221,100,1629384601603,false],[221],[223,30,1629384601610,false]],1271]]
ERROR [Error: Exception in HostFunction: Malformed calls from JS: field sizes are different.

@hayr-hotoca
Copy link
Author

hayr-hotoca commented Aug 19, 2021

I realise I need to convert a key to byte in android! In iOS Do I need to do the same?

@zanechua
Copy link
Member

zanechua commented Sep 1, 2021

Yes, you'll have to implement it both for Android and iOS.

If you do implement it, open to accepting PRs to merge the ability to use bytes instead of string

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

2 participants