react-native-aes icon indicating copy to clipboard operation
react-native-aes copied to clipboard

Documentation

Open xploSEoF opened this issue 6 years ago • 1 comments

The documentation doesn't make text encoding clear at all.

It would seem:

  • base16 (hexadecimal):
    • iv from randomKey
    • iv for encrypt
    • iv for decrypt
    • key on iOS for encrypt (despite being called base64key in the JS code)
    • key on iOS for decrypt (despite being called base64key in the JS code)
  • base64:
    • cipher from encrypt (no padding characters given)
    • cipher for decrypt (padding characters allowed but not required)

I haven't checked the other functions yet, but this was rather confusing to find out.

xploSEoF avatar Jul 25 '19 12:07 xploSEoF

yep, you were right, thank you for catching those leftovers from refactoring.

tectiv3 avatar Jul 26 '19 06:07 tectiv3