Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-key-manager

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-key-manager

A package for securely generating and mananging keys in React-Native.

  • 0.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-key-mamager

A package for securely generating and mananging keys in React-Native.

Installation

npm install react-native-key-mamager --save

cd ios && pod install && cd ..

or

yarn add react-native-key-mamager

cd ios && pod install && cd ..

Usage

import {
  CreateOrGetKey,
  GenerateKey,
  GetKey,
  DeleteKey,
  UpdateKey,
  SetKey,
} from 'react-native-key-manager';

// ...

const result = await GenerateKey();

API

  1. SetKey(alias: string, key: string) - Save the key. Returns: Promise that resolves with object {success: true, message: response_text} if success or rejects with message if fail.

  2. UpdateUser(alias: string, key: string) - Update the key. Returns: Promise that resolves with object {success: true, message: response_text} if success or rejects with message if fail.

  3. GetKey(alias: string) - Gets the key. Returns: Promise that resolves with object {success: true, alias: "alias", key: "key"} if success or rejects with message if fail.

  4. DeleteUser(alias: string) - Deletes the alias. Returns: Promise that resolves with object {success: true, message: response_text} if success or rejects with message if fail.

  5. CreateOrGetKey(alias: string, length: number (Optional)) - Creates or Rertives a Key. Returns: Promise that resolves with object {success: true, alias: "alias", key: "key"} if success or rejects with message if fail.

  6. GenerateKey(length: number (Optional)) - Creates a Key. Returns: String of a random key of desired length.

Contributing

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

License

MIT

Keywords

FAQs

Package last updated on 23 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc