Skip to content

Error: Native crypto module could not be used to get secure random number. (React-Native) #425

Description

@pushpender-singh-ap

react-native: 0.66.4
crypto-js: ^4.1.1

import CryptoJS from "crypto-js";
---
var ciphertext = CryptoJS.AES.encrypt("HEY GOOGLE", 'secret key 123').toString();
console.log(ciphertext);

var bytes = CryptoJS.AES.decrypt(ciphertext, 'secret key 123');
var originalText = bytes.toString(CryptoJS.enc.Utf8);
console.log(originalText);
---
 ERROR  Error: Native crypto module could not be used to get secure random number.

Screenshot_1653045749

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions