#324·jsencrypt

Unable to run in RN environment: Can't find variable self

Author: DonaldDaiCreated Aug 15, 2025Updated Apr 26, 2026

https://github.com/travist/jsencrypt/blob/a0ae319f4011d90ec7dc15192c0f7be1f3946ee0/lib/lib/jsbn/rng.js#L11

https://github.com/travist/jsencrypt/commit/f28226d656cfc26609d5db9a5ef7fc769ff2be1c

Hi~It seems this change has broken my project which is based on react-native tech. Hope it could be fixed later

If someone happens to come across this problem, please fix the version to "3.3.2" It took my whole afternoon to find the problem, OMG...