Comments (3)
Hi,
Just came across the Library this week.
With current support for .Net Standard 1.4 we should hopefully be able to get this working for Xamarin.
We have just installed NUGET to an iOS project and get the same error as above.
We have then taken the source code and tried to create a Xamarin .Net Standard 2.0 project from it, see how it fits together.
When running it in a test iOS project, we get a "cannot find "bcrypt.dll" at runtime" error.
Could someone clarify what is BCrypt.dll and where it should reside (on the platform or even in the project)
If these cannot be used on Xamarin, how difficult is it to replace the native/Bcrypt.cs and Ncrypt.cs files which call out to b/ncrypt.dll with something like -
https://github.com/neoKushan/BCrypt.Net-Core
OR
https://github.com/BcryptNet/bcrypt.net
Sorry currently know little about crypto algos so cannot easily replace ourselves, but willing to have a look with more information.
Thanks for your help
from jose-jwt.
Hi @wickedw ,
bcrypt.dll/ncrypt.dll usually provided on Windows OS and contains Microfost Crypto Primitives implementations. jose-jwt
itself using native interface to bcrypt.dll/ncrypt.dll for features that not directly available as managed (.net) interfaces. Examples can be generating ephemeral EC keys or AES GCM mode.
Where possible jose-jwt
tries to stick to managed interfaces for broader compatibility. But even using .NET interfaces sometimes not enough, for instance on Linux OS some interfaces simply throws NotImplementedException.
Can't really say much about Xamarin compatibility cause i never used it myself. Are you running into given exception for some specific signing or encryption algos? May be you can just stick to something that implemented on Xamarin instead?
I haven't seen projects you mentioned before, will take a look.
from jose-jwt.
Hi dvsekhvalnov,
Thanks for the prompt reply. We figured it was a windows OS system dll, thanks for clarification.
I think ideally Xamarin would need a pure .net Standard implementation that did not rely on any native windows dlls. For example, bcrypt.dll does not exist on iOS / Droid so needs an equivalent replacement for each platform in order to make those bcrypt / ncrypt calls.
Let me have a look at some options offline and get back to you.
from jose-jwt.
Related Issues (20)
- Issue when encrypt using RSA_OAEP_256 and A256GCM HOT 5
- EcdhKeyManagement alg expects key to be of CngKey or Jwk types with kty='EC HOT 11
- A128CBC+HS256 support in parity with Java's Nimbus JOSE + JWT HOT 3
- Remove legacy dependency `System.Security.Cryptography.Algorithms` for `netstandard2.1` target HOT 1
- Kinda weird code in the library HOT 2
- Play Integrity Exception "org.jose4j.lang.IntegrityException: A256KW key unwrap/decrypt failed" HOT 8
- JWT.Encode works fine on local machine in .NET7.0 Windows 11 , on windows server 2012 throw exception: Unable to sign content., inner exception: The requested operation is not supported.| HOT 4
- Get Public key from File HOT 10
- Decode throws when a nested property of an encoded model is a System.Decimal with one or more decimal places (e.g., 24.00m) HOT 2
- Windows Cryptography Next Generation (CNG) is not supported on this platform. HOT 5
- JWT Token Header HOT 1
- Is lib still supported? HOT 11
- Jose.JoseException: Unable to sign content. HOT 2
- JWE Decrypt not working for RSA algorithm HOT 9
- Susceptible to sign/encrypt confusion attack HOT 3
- Further exploitation about sign/encrypt attack HOT 6
- BCryptDecrypt error! HOT 5
- nimbus-jose-jwt change from JSON Smart to GSon upgrade has breaking changes on serialization and desrialization for jsonObject HOT 3
- Version 5: decryption of compressed token throws exception but works in 4.1 HOT 2
- Need adding support for RSA_OAEP_512 support in encryption HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jose-jwt.