GithubHelp home page GithubHelp logo

siepra / react-native-e2ee Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 839 KB

(WIP) End-to-End Encryption (E2EE) made easy for react-native projects

License: MIT License

CMake 0.49% C++ 0.72% Java 10.11% JavaScript 5.08% Ruby 6.84% C 0.17% Objective-C 5.67% Objective-C++ 1.36% Swift 36.38% TypeScript 7.64% Kotlin 25.52%

react-native-e2ee's Introduction

React Native E2E Encryption (WIP)

Handling cryptography easily with JS interfaces.

Description

This projects addresses the purpose of providing a developer friendly JS interface for generating, safely storing and serving cryptographic keys for end-to-end encryption on Android and iOS devices. Of course, the server (or another handy way of distributing data between devices) is needed, but the point of this package is to provide a developer with clients' public key and all the necessary methods to use in end-to-end encrypted communication without forcing him/her to dive into native implementations for generating and storing cryptohgraphic data.

Security

The project encrypts with RSA (Ultimately it'll use hybrid encryption with RSA and AES).

Installation

Open a Terminal in your project's folder and run:

Using yarn

yarn add react-native-e2ee

Using npm

npm install react-native-e2ee

Usage/API

  • generateKeyPair(): Promise<string> - generates/fetches key pair for fixed alias and returns the public key.
  • getOwnPublicKey(): Promise<string | null> - returns own public key or null if non existing.
  • encryptMessage( message: string, publicKey: string ): Promise<string | null> - encrypts message for the given public key.
  • decryptMessage(message: string): Promise<string | null> - decrypts message using own public key.

Key progress so far

  • Full API coverage for Android
  • Full API coverage for iOS

Roadmap

Examine the upcoming changes here.

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

react-native-e2ee's People

Contributors

siepra avatar

Stargazers

Michael Curry avatar breadhunter avatar

Watchers

 avatar

react-native-e2ee's Issues

[DOCS] Roadmap

This is the proposition and plan for the upcoming development of the package.

MVP

  1. Prepare basic cryptographic (RSA) methods natively on mobile platforms:

    • Android
    • iOS
  2. Bind native methods to the exposed React interfaces:

    • Android
    • iOS
  3. Publish the package on NPM registry

v2.x

Use hybrid encryption with RSA and AES.

v3.x

Enhance API with keys management features.

v4.x

Handle encryption of other data types.

A problem occurred evaluating project ':react-native-e2ee'.

A problem occurred evaluating project ':react-native-e2ee'.

Failed to apply plugin 'kotlin-android'.
Extension of type 'JavaPluginExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension, LibrariesForReactAndroidLibs, VersionCatalogsExtension, KotlinAndroidProjectExtension, KotlinTestsRegistry]

Screenshot 2024-07-16 at 2 06 04 PM

Problem occured

•⁠ ### ⁠What went wrong:

A problem occurred evaluating project ':react-native-e2ee'.
	⁠Failed to apply plugin 'kotlin-android'.
   > Extension of type 'JavaPluginExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension, LibrariesForReactAndroidLibs, VersionCatalogsExtension, KotlinAndroidProjectExtension, KotlinTestsRegistry]

image

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.