poowf / react-native-argon2 Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi, I have the follow error when i call aragon2 function in RN. The problem is only with Android
Error: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.lang.String)' on a null object reference
RN: 0.64.2
RN argon2: 2.0.1
How could i fix this issue?
Thank you
I get the following error while building the android project on linux system
`~/aries-mobile-agent-react-native/aries-mobile-agent-react-native/node_modules/react-native-argon2/android/src/main/java/com/poowf/argon2/RNArgon2Package.java:13: error: com.poowf.argon2.RNArgon2Package is not abstract and does not override abstract method createJSModules() in com.facebook.react.ReactPackage
public class RNArgon2Package implements ReactPackage {
^
1 error
Task :react-native-argon2:compileReleaseJavaWithJavac FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings
201 actionable tasks: 201 executed
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
react-native 0.63
pod install return an error as below:
[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod RNArgon2
depends upon React-Core
, which does not define modules.
Hello,
I'm using your library and when i updated my simulator (and xcode) to IOS15 i started to receive the following error:
Undefined symbols for architecture x86_64:
"__swift_FORCE_LOAD_$_swiftDataDetection", referenced from:
__swift_FORCE_LOAD_$_swiftDataDetection_$_CatCrypto in libCatCrypto.a(Argon.o)
__swift_FORCE_LOAD_$_swiftDataDetection_$_CatCrypto in libCatCrypto.a(ArrayExtension.o)
__swift_FORCE_LOAD_$_swiftDataDetection_$_CatCrypto in libCatCrypto.a(Contextual.o)
__swift_FORCE_LOAD_$_swiftDataDetection_$_CatCrypto in libCatCrypto.a(Crypto.o)
__swift_FORCE_LOAD_$_swiftDataDetection_$_CatCrypto in libCatCrypto.a(Decryption.o)
__swift_FORCE_LOAD_$_swiftDataDetection_$_CatCrypto in libCatCrypto.a(Encryption.o)
__swift_FORCE_LOAD_$_swiftDataDetection_$_CatCrypto in libCatCrypto.a(EnumDescription.o)
...
(maybe you meant: __swift_FORCE_LOAD_$_swiftDataDetection_$_YogaKit, __swift_FORCE_LOAD_$_swiftDataDetection_$_RNArgon2 , __swift_FORCE_LOAD_$_swiftDataDetection_$_CatCrypto )
"__swift_FORCE_LOAD_$_swiftFileProvider", referenced from:
__swift_FORCE_LOAD_$_swiftFileProvider_$_CatCrypto in libCatCrypto.a(Argon.o)
__swift_FORCE_LOAD_$_swiftFileProvider_$_CatCrypto in libCatCrypto.a(ArrayExtension.o)
__swift_FORCE_LOAD_$_swiftFileProvider_$_CatCrypto in libCatCrypto.a(Contextual.o)
__swift_FORCE_LOAD_$_swiftFileProvider_$_CatCrypto in libCatCrypto.a(Crypto.o)
__swift_FORCE_LOAD_$_swiftFileProvider_$_CatCrypto in libCatCrypto.a(Decryption.o)
__swift_FORCE_LOAD_$_swiftFileProvider_$_CatCrypto in libCatCrypto.a(Encryption.o)
__swift_FORCE_LOAD_$_swiftFileProvider_$_CatCrypto in libCatCrypto.a(EnumDescription.o)
...
(maybe you meant: __swift_FORCE_LOAD_$_swiftFileProvider_$_RNArgon2, __swift_FORCE_LOAD_$_swiftFileProvider_$_YogaKit , __swift_FORCE_LOAD_$_swiftFileProvider_$_CatCrypto )
ld: symbol(s) not found for architecture x86_64
Hello,
Whenever I try to run your library I get error - Exception - null is not an object (evaluating 'RNArgon2Module.argon2')
I'm trying to install react-native-argon2
to my React Native project, but I'm getting the following error in Pods installation:
[!] The following Swift pods cannot yet be integrated as static libraries:
The Swift pod `RNArgon2` depends upon `Argon2`, which does not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may set `use_modular_headers!` globally in your Podfile, or specify `:modular_headers => true` for particular dependencies.
If I add use_modular_headers!
as suggested, I get many other errors.
Here is my Podfile
(with the new RN 0.63 spec):
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '10.0'
target 'MY_APP_NAME_REDACTED' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
end
Is it possible to pass a 16 bit salt to encode a password ?
When I am trying to, I have the following error : [Error: src.length=16 srcPos=-16 dst.length=32 dstPos=0 length=32]
Looks like it accepts only 32 bits minimum...
Thanks by advance !
Thanks for your work. I want to pass a 256bit salt but the doc shows a string salt example. So can i pass a 256bit salt to this?
I tried to pass a buffer and it gave this error:
[[31,20,20,20],[0,0,1,0],[[221,100,1629384601603,false],[221],[223,30,1629384601610,false]],1271]]
ERROR [Error: Exception in HostFunction: Malformed calls from JS: field sizes are different.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.