Giter Site home page Giter Site logo

react-native-argon2's People

Contributors

zanechua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-argon2's Issues

Error: Attempt to invoke virtual method

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

Error in the Android module while ci/cd building on linux

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.

  • What went wrong:
    Execution failed for task ':react-native-argon2:compileReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org/
    BUILD FAILED in 4m 47s
    Error: Process completed with exit code 1.`

depend on React-Core but not define

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.

Error on IOS15 during build

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

Unable to integrate to React Native 0.63

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

Error when passing a 16 bits salt

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 !

How to pass a 256bit salt?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.