Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@onekeyfe/react-native-pbkdf2

Latest version: v6.8.0-23

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: 1keyfe
5 Stars
9 Forks
258 Versions
38.0K Downloads
TypeScript Repo language

Scan summary

@onekeyfe/react-native-pbkdf2 was last scanned on 23 Nov 2026 at version 6.8.0-23. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 258 versions; the latest 5 were published on 23 Nov 2026.
  • Findings: No rules fired in version 6.8.0-23.
  • Downloads: 37,962 downloads.

Versions

258 versions published
Versions and the rules that fired in each
VersionPublishedStatus
6.8.0-23 LATEST 23 Nov 2026 No rules fired
6.8.0-22 23 Nov 2026 No rules fired
6.8.0-21 23 Nov 2026 No rules fired
6.8.0-20 23 Nov 2026 Not shown
6.8.0-19 23 Nov 2026 Not shown

No rules fired in 6.8.0-23

Findings

Findings for v6.8.0-23. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 6.8.0-23; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@onekeyfe/react-native-pbkdf2

Native PBKDF2 key derivation for React Native on iOS and Android.

npm license iOS Android TurboModule

A one-method TurboModule that derives a PBKDF2 key with platform crypto: CCKeyDerivationPBKDF on iOS and SpongyCastle's PKCS5S2ParametersGenerator on Android. Password and salt are Base64-encoded byte sequences, the caller chooses the iteration count, output length and hash name, and the derived key comes back Base64-encoded. Derivation runs natively rather than in JavaScript. The package stores no keys and recommends no parameters — iteration count, salt and hash belong to the application's existing key format.

Features

  • Native derivation — CommonCrypto on iOS and SpongyCastle on Android, off the JS thread.
  • Explicit byte inputs — Base64 password and salt remove any ambiguity about text encoding at the bridge.
  • Selectable PRF — sha-256 and sha-512 are supported, with SHA-1 kept as the compatibility fallback.
  • Caller-chosen output length — keyLength sets the derived key size in bytes.
  • Pure computation — no persistence, no key management and no global state; the caller owns the result.

Installation

yarn add @onekeyfe/react-native-pbkdf2

The package ships native code. Install the application's iOS pods and rebuild the native binary; a JavaScript-only update does not register the TurboModule.

Usage

import Pbkdf2 from '@onekeyfe/react-native-pbkdf2';

// Base64 password/salt for illustration only — use the app's key format.
const keyBase64 = await Pbkdf2.derive(
  'cGFzc3dvcmQ=', // "password"
  'c2FsdA==', // "salt"
  1000,
  32,
  'sha-256',
);

Argument order is password, salt, rounds, output length in bytes, hash name. The call above is not a parameter recommendation. Handle rejection and keep the returned Base64 aligned with the format the application expects.

API

Export Signature Platforms Description
derive(password, salt, rounds, keyLength, hash) Promise<string> iOS, Android Derives a key; password/salt are Base64 bytes, result is Base64.
default export Spec iOS, Android The TurboModule instance; derive is its only method.
Pbkdf2Spec type iOS, Android The native module interface type.

hash accepts 'sha-256' and 'sha-512'. Any other value selects SHA-1 for compatibility with the original API rather than failing, so pass an explicit supported name. Native failures reject with derive_fail on iOS and PBKDF2_ERROR on Android. See src/NativePbkdf2.ts for the exact interface.

Platform support

Capability iOS Android Web
PBKDF2 derivation ✅ CommonCrypto ✅ SpongyCastle —
SHA-256 / SHA-512 PRF ✅ ✅ —
SHA-1 fallback ✅ ✅ —
Caller-selected output length ✅ ✅ —

Caveats

[!IMPORTANT] An unrecognized hash silently falls back to SHA-1. Always pass 'sha-256' or 'sha-512' explicitly when the key format requires them; a typo otherwise produces a valid-looking key from the wrong PRF.

[!WARNING] Invalid Base64 is not rejected consistently. iOS decodes an invalid string to empty bytes and derives from that, while Android rejects with PBKDF2_ERROR. Validate and encode password and salt in JavaScript before calling derive.

[!NOTE] The package neither stores nor manages derived keys and does not choose iteration counts or salts. Align every parameter with the application's existing key format; resolving the promise persists nothing.

References

Upstream attribution

First, a sincere thank-you to the react-native-pbkdf2 maintainers for their excellent work 🙏

This package is built on, and inspired by, PublicaIO/react-native-pbkdf2.

Our original plan was to keep our customizations as patches on top of upstream react-native-pbkdf2.

As our product requirements evolved, the scope of those changes outgrew what we could reasonably maintain as an upstream patch set. We regret that we were unable to keep this work in patch form.

As the gap grew, we ultimately forked react-native-pbkdf2 to keep development and delivery stable.

Upstream Project
Notes
  • This fork includes OneKey-specific adaptations for our product requirements.
  • If you are looking for original behavior and full documentation, please refer to the upstream repository.

Thank you again to everyone who contributes to react-native-pbkdf2 💙

License

MIT. See LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @onekeyfe/react-native-pbkdf2

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229