z-hao-wang / react-native-rsa

React native rsa crypto
MIT License
68 stars 19 forks source link

error: Unexpected token M in JSON at position 0 #12

Closed wuyunqiang closed 5 years ago

wuyunqiang commented 6 years ago
    key = "xxxxxx";
                rsa.setPublicString(key);
                res = rsa.encrypt(content);

rsa

z-hao-wang commented 5 years ago

your key might be invalid?