juhoen / hybrid-crypto-js

RSA+AES hybrid encryption implementation for JavaScript. Works with Node.js, React Native and modern browsers.

Home Page:https://github.com/juhoen/hybrid-crypto-js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bytes is not defined

harishdrish123 opened this issue · comments

Getting below error:

bytes = forge.util.encodeUtf8(String(input));
^
ReferenceError: bytes is not defined

Same here. My dependencies are,

"dependencies": {
    "ajv": "^6.5.2",
    "expo": "^25.1.2",
    "hybrid-crypto-js": "^0.1.6",
    "react": "^16.4.2",
    "react-art": "^16.0.0",
    "react-dom": "^16.0.0",
    "react-forge": "0.0.1",
    "react-native": "^0.56.0",
    "react-native-web": "^0.8.9",
    "react-scripts": "1.1.4"
  }

The following 1 line fix will fix this

aa5f3d8