文档模板:v0.4.2

react-native-secure-key-store

本项目基于 react-native-secure-key-store 开发。

版本所属关系如下:

三方库名称 三方库版本(npm地址) 发布信息 支持RN版本 Autolink 编译API版本 社区基线版本 源码地址
@react-native-ohos/react-native-secure-key-store ~ 2.1.0 Gitcode Releases 0.77.* 否 API12+ 2.0.10 master
@react-native-ohos/react-native-secure-key-store ~ 2.0.11 Gitcode Releases 0.72.* 否 API12+ 2.0.10 br_rnoh0.72

简介

react-native-secure-key-store 是一个用于在 iOS、Android 和鸿蒙设备上安全存储密钥的 React Native 库,分别基于 KeyChain、KeyStore 和 HUKS 实现。

在鸿蒙平台上,密钥通过 HUKS(HarmonyOS Universal KeyStore)使用 AES-256-GCM 加密,密文经 preferences 持久化,提供设备级安全存储。

下载安装

进入到工程目录并输入以下命令:

npm

npm install @react-native-ohos/react-native-secure-key-store

yarn

yarn add @react-native-ohos/react-native-secure-key-store