expo-crypto 15.0.9-canary-20251205-a1dedc6 → 15.0.9-canary-20251210-1f163e3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/crypto/CryptoModule.kt +0 -8
- package/build/Crypto.d.ts.map +1 -1
- package/build/Crypto.js +0 -9
- package/build/Crypto.js.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/CryptoModule.swift +0 -14
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/{15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6-sources.jar → 15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3-sources.jar} +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3-sources.jar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3-sources.jar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3-sources.jar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3-sources.jar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.aar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.aar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.aar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.aar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.module +87 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/{15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.pom → 15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251210-1f163e3/expo.modules.crypto-15.0.9-canary-20251210-1f163e3.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/maven-metadata.xml.sha512 +1 -1
- package/mocks/ExpoCrypto.ts +0 -8
- package/package.json +4 -6
- package/src/Crypto.ts +0 -7
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6-sources.jar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6-sources.jar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6-sources.jar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6-sources.jar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.aar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.aar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.aar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.aar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.module +0 -87
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.crypto/15.0.9-canary-20251205-a1dedc6/expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.pom.sha512 +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
- bump base64-js from 1.2.3 to 1.5.1 ([#41211](https://github.com/expo/expo/pull/41211) by [@hassankhan](https://github.com/hassankhan))
|
|
14
|
+
- remove `ExpoCrypto.getRandomBase64String()` fallback in `getRandomBytes()` ([#41517](https://github.com/expo/expo/pull/41517) by [@hassankhan](https://github.com/hassankhan))
|
|
15
|
+
|
|
13
16
|
## 15.0.8 - 2025-12-05
|
|
14
17
|
|
|
15
18
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -4,13 +4,13 @@ plugins {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
group = 'host.exp.exponent'
|
|
7
|
-
version = '15.0.9-canary-
|
|
7
|
+
version = '15.0.9-canary-20251210-1f163e3'
|
|
8
8
|
|
|
9
9
|
android {
|
|
10
10
|
namespace "expo.modules.crypto"
|
|
11
11
|
defaultConfig {
|
|
12
12
|
versionCode 25
|
|
13
|
-
versionName "15.0.9-canary-
|
|
13
|
+
versionName "15.0.9-canary-20251210-1f163e3"
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -16,8 +16,6 @@ class CryptoModule : Module() {
|
|
|
16
16
|
|
|
17
17
|
Function("digestString", this@CryptoModule::digestString)
|
|
18
18
|
AsyncFunction("digestStringAsync", this@CryptoModule::digestString)
|
|
19
|
-
Function("getRandomBase64String", this@CryptoModule::getRandomBase64String)
|
|
20
|
-
AsyncFunction("getRandomBase64StringAsync", this@CryptoModule::getRandomBase64String)
|
|
21
19
|
Function("getRandomValues", this@CryptoModule::getRandomValues)
|
|
22
20
|
Function("digest", this@CryptoModule::digest)
|
|
23
21
|
Function("randomUUID") {
|
|
@@ -25,12 +23,6 @@ class CryptoModule : Module() {
|
|
|
25
23
|
}
|
|
26
24
|
}
|
|
27
25
|
|
|
28
|
-
private fun getRandomBase64String(randomByteCount: Int): String {
|
|
29
|
-
val output = ByteArray(randomByteCount)
|
|
30
|
-
secureRandom.nextBytes(output)
|
|
31
|
-
return Base64.encodeToString(output, Base64.NO_WRAP)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
26
|
private fun digestString(algorithm: DigestAlgorithm, data: String, options: DigestOptions): String {
|
|
35
27
|
val messageDigest = MessageDigest.getInstance(algorithm.value).apply { update(data.toByteArray()) }
|
|
36
28
|
|
package/build/Crypto.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Crypto.d.ts","sourceRoot":"","sources":["../src/Crypto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Crypto.d.ts","sourceRoot":"","sources":["../src/Crypto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEjG,OAAO,EAAE,qBAAqB,EAAkB,mBAAmB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAKpG,cAAc,gBAAgB,CAAC;AAW/B;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,UAAU,CAoB5D;AAGD;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAUhF;AA0CD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,qBAAqB,EAChC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,mBAAsD,GAC9D,OAAO,CAAC,MAAM,CAAC,CAUjB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,CAAC,SAAS,kBAAkB,GAAG,mBAAmB,EAChF,UAAU,EAAE,CAAC,GACZ,CAAC,CAGH;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAEnC;AAYD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,SAAS,EAAE,qBAAqB,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAcjG"}
|
package/build/Crypto.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { toByteArray } from 'base64-js';
|
|
2
1
|
import { UnavailabilityError } from 'expo-modules-core';
|
|
3
2
|
import { CryptoDigestAlgorithm, CryptoEncoding } from './Crypto.types';
|
|
4
3
|
import ExpoCrypto from './ExpoCrypto';
|
|
@@ -35,10 +34,6 @@ export function getRandomBytes(byteCount) {
|
|
|
35
34
|
ExpoCrypto.getRandomValues(byteArray);
|
|
36
35
|
return byteArray;
|
|
37
36
|
}
|
|
38
|
-
else if (ExpoCrypto.getRandomBase64String) {
|
|
39
|
-
const base64 = ExpoCrypto.getRandomBase64String(validByteCount);
|
|
40
|
-
return toByteArray(base64);
|
|
41
|
-
}
|
|
42
37
|
else {
|
|
43
38
|
throw new UnavailabilityError('expo-crypto', 'getRandomBytes');
|
|
44
39
|
}
|
|
@@ -58,10 +53,6 @@ export async function getRandomBytesAsync(byteCount) {
|
|
|
58
53
|
ExpoCrypto.getRandomValues(byteArray);
|
|
59
54
|
return byteArray;
|
|
60
55
|
}
|
|
61
|
-
else if (ExpoCrypto.getRandomBase64StringAsync) {
|
|
62
|
-
const base64 = await ExpoCrypto.getRandomBase64StringAsync(validByteCount);
|
|
63
|
-
return toByteArray(base64);
|
|
64
|
-
}
|
|
65
56
|
else {
|
|
66
57
|
throw new UnavailabilityError('expo-crypto', 'getRandomBytesAsync');
|
|
67
58
|
}
|
package/build/Crypto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Crypto.js","sourceRoot":"","sources":["../src/Crypto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW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CAAC;AACL,CAAC","sourcesContent":["import { toByteArray } from 'base64-js';\nimport { UnavailabilityError, UintBasedTypedArray, IntBasedTypedArray } from 'expo-modules-core';\n\nimport { CryptoDigestAlgorithm, CryptoEncoding, CryptoDigestOptions, Digest } from './Crypto.types';\nimport ExpoCrypto from './ExpoCrypto';\n\ndeclare const global: any;\n\nexport * from './Crypto.types';\n\nclass CryptoError extends TypeError {\n code = 'ERR_CRYPTO';\n\n constructor(message: string) {\n super(`expo-crypto: ${message}`);\n }\n}\n\n// @needsAudit\n/**\n * Generates completely random bytes using native implementations. The `byteCount` property\n * is a `number` indicating the number of bytes to generate in the form of a `Uint8Array`.\n * Falls back to `Math.random` during development to prevent issues with React Native Debugger.\n * @param byteCount - A number within the range from `0` to `1024`. Anything else will throw a `TypeError`.\n * @return An array of random bytes with the same length as the `byteCount`.\n */\nexport function getRandomBytes(byteCount: number): Uint8Array {\n assertByteCount(byteCount, 'getRandomBytes');\n const validByteCount = Math.floor(byteCount);\n if (__DEV__) {\n if (!global.nativeCallSyncHook || global.__REMOTEDEV__) {\n // remote javascript debugging is enabled\n const array = new Uint8Array(validByteCount);\n for (let i = 0; i < validByteCount; i++) {\n array[i] = Math.floor(Math.random() * 256);\n }\n return array;\n }\n }\n if (ExpoCrypto.getRandomValues) {\n const byteArray = new Uint8Array(validByteCount);\n ExpoCrypto.getRandomValues(byteArray);\n return byteArray;\n } else if (ExpoCrypto.getRandomBase64String) {\n const base64 = ExpoCrypto.getRandomBase64String(validByteCount);\n return toByteArray(base64);\n } else {\n throw new UnavailabilityError('expo-crypto', 'getRandomBytes');\n }\n}\n\n// @needsAudit\n/**\n * Generates completely random bytes using native implementations. The `byteCount` property\n * is a `number` indicating the number of bytes to generate in the form of a `Uint8Array`.\n * @param byteCount - A number within the range from `0` to `1024`. Anything else will throw a `TypeError`.\n * @return A promise that fulfills with an array of random bytes with the same length as the `byteCount`.\n */\nexport async function getRandomBytesAsync(byteCount: number): Promise<Uint8Array> {\n assertByteCount(byteCount, 'getRandomBytesAsync');\n const validByteCount = Math.floor(byteCount);\n if (ExpoCrypto.getRandomValues) {\n const byteArray = new Uint8Array(validByteCount);\n ExpoCrypto.getRandomValues(byteArray);\n return byteArray;\n } else if (ExpoCrypto.getRandomBase64StringAsync) {\n const base64 = await ExpoCrypto.getRandomBase64StringAsync(validByteCount);\n return toByteArray(base64);\n } else {\n throw new UnavailabilityError('expo-crypto', 'getRandomBytesAsync');\n }\n}\n\nfunction assertByteCount(value: any, methodName: string): void {\n if (\n typeof value !== 'number' ||\n isNaN(value) ||\n Math.floor(value) < 0 ||\n Math.floor(value) > 1024\n ) {\n throw new TypeError(\n `expo-crypto: ${methodName}(${value}) expected a valid number from range 0...1024`\n );\n }\n}\n\nfunction assertAlgorithm(algorithm: CryptoDigestAlgorithm): void {\n if (!Object.values(CryptoDigestAlgorithm).includes(algorithm)) {\n throw new CryptoError(\n `Invalid algorithm provided. Expected one of: CryptoDigestAlgorithm.${Object.keys(\n CryptoDigestAlgorithm\n ).join(', AlgCryptoDigestAlgorithmorithm.')}`\n );\n }\n}\n\nfunction assertData(data: string): void {\n if (typeof data !== 'string') {\n throw new CryptoError(`Invalid data provided. Expected a string.`);\n }\n}\n\nfunction assertEncoding(encoding: CryptoEncoding): void {\n if (!Object.values(CryptoEncoding).includes(encoding)) {\n throw new CryptoError(\n `Invalid encoding provided. Expected one of: CryptoEncoding.${Object.keys(\n CryptoEncoding\n ).join(', CryptoEncoding.')}`\n );\n }\n}\n\n// @needsAudit\n/**\n * The `digestStringAsync()` method of `Crypto` generates a digest of the supplied `data` string with the provided digest `algorithm`.\n * A digest is a short fixed-length value derived from some variable-length input. **Cryptographic digests** should exhibit _collision-resistance_,\n * meaning that it's very difficult to generate multiple inputs that have equal digest values.\n * You can specify the returned string format as one of `CryptoEncoding`. By default, the resolved value will be formatted as a `HEX` string.\n * On web, this method can only be called from a secure origin (HTTPS) otherwise, an error will be thrown.\n *\n * @param algorithm The cryptographic hash function to use to transform a block of data into a fixed-size output.\n * @param data The value that will be used to generate a digest.\n * @param options Format of the digest string. Defaults to: `CryptoDigestOptions.HEX`.\n * @return Return a Promise which fulfills with a value representing the hashed input.\n *\n * @example\n * ```ts\n * const digest = await Crypto.digestStringAsync(\n * Crypto.CryptoDigestAlgorithm.SHA512,\n * '🥓 Easy to Digest! 💙'\n * );\n * ```\n */\nexport async function digestStringAsync(\n algorithm: CryptoDigestAlgorithm,\n data: string,\n options: CryptoDigestOptions = { encoding: CryptoEncoding.HEX }\n): Promise<Digest> {\n if (!ExpoCrypto.digestStringAsync) {\n throw new UnavailabilityError('expo-crypto', 'digestStringAsync');\n }\n\n assertAlgorithm(algorithm);\n assertData(data);\n assertEncoding(options.encoding);\n\n return await ExpoCrypto.digestStringAsync(algorithm, data, options);\n}\n\n/**\n * The `getRandomValues()` method of `Crypto` fills a provided `TypedArray` with cryptographically secure random values.\n *\n * @param typedArray An integer based [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) to fill with cryptographically secure random values. It modifies the input array in place.\n * @return The input array filled with cryptographically secure random values.\n *\n * @example\n * ```ts\n * const byteArray = new Uint8Array(16);\n * Crypto.getRandomValues(byteArray);\n * console.log('Your lucky bytes: ' + byteArray);\n * ```\n */\nexport function getRandomValues<T extends IntBasedTypedArray | UintBasedTypedArray>(\n typedArray: T\n): T {\n ExpoCrypto.getRandomValues(typedArray);\n return typedArray;\n}\n\n/**\n * The `randomUUID()` method returns a unique identifier based on the V4 UUID spec (RFC4122).\n * It uses cryptographically secure random values to generate the UUID.\n *\n * @return A string containing a newly generated UUIDv4 identifier\n * @example\n * ```ts\n * const UUID = Crypto.randomUUID();\n * console.log('Your UUID: ' + UUID);\n * ```\n */\nexport function randomUUID(): string {\n return ExpoCrypto.randomUUID();\n}\n\nconst digestLengths = {\n [CryptoDigestAlgorithm.SHA1]: 20,\n [CryptoDigestAlgorithm.SHA256]: 32,\n [CryptoDigestAlgorithm.SHA384]: 48,\n [CryptoDigestAlgorithm.SHA512]: 64,\n [CryptoDigestAlgorithm.MD2]: 16,\n [CryptoDigestAlgorithm.MD4]: 16,\n [CryptoDigestAlgorithm.MD5]: 16,\n};\n\n/**\n * The `digest()` method of `Crypto` generates a digest of the supplied `TypedArray` of bytes `data` with the provided digest `algorithm`.\n * A digest is a short fixed-length value derived from some variable-length input. **Cryptographic digests** should exhibit _collision-resistance_,\n * meaning that it's very difficult to generate multiple inputs that have equal digest values.\n * On web, this method can only be called from a secure origin (HTTPS) otherwise, an error will be thrown.\n *\n * @param algorithm The cryptographic hash function to use to transform a block of data into a fixed-size output.\n * @param data The value that will be used to generate a digest.\n * @return A Promise which fulfills with an ArrayBuffer representing the hashed input.\n * @example\n * ```ts\n * const array = new Uint8Array([1, 2, 3, 4, 5]);\n * const digest = await Crypto.digest(Crypto.CryptoDigestAlgorithm.SHA512, array);\n * console.log('Your digest: ' + digest);\n * ```\n */\nexport function digest(algorithm: CryptoDigestAlgorithm, data: BufferSource): Promise<ArrayBuffer> {\n return new Promise((resolve, reject) => {\n try {\n if (typeof ExpoCrypto.digestAsync === 'function') {\n resolve(ExpoCrypto.digestAsync(algorithm, data));\n } else {\n const output = new Uint8Array(digestLengths[algorithm]);\n ExpoCrypto.digest(algorithm, output, data);\n resolve(output.buffer);\n }\n } catch (error) {\n reject(error);\n }\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Crypto.js","sourceRoot":"","sources":["../src/Crypto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAA2C,MAAM,mBAAmB,CAAC;AAEjG,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAA+B,MAAM,gBAAgB,CAAC;AACpG,OAAO,UAAU,MAAM,cAAc,CAAC;AAItC,cAAc,gBAAgB,CAAC;AAE/B,MAAM,WAAY,SAAQ,SAAS;IACjC,IAAI,GAAG,YAAY,CAAC;IAEpB,YAAY,OAAe;QACzB,KAAK,CAAC,gBAAgB,OAAO,EAAE,CAAC,CAAC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AO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,IAAI,CAAC;YACH,IAAI,OAAO,UAAU,CAAC,WAAW,KAAK,UAAU,EAAE,CAAC;gBACjD,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;YACnD,CAAC;iBAAM,CAAC;gBACN,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC;gBACxD,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;gBAC3C,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACzB,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,CAAC;QAChB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["import { UnavailabilityError, UintBasedTypedArray, IntBasedTypedArray } from 'expo-modules-core';\n\nimport { CryptoDigestAlgorithm, CryptoEncoding, CryptoDigestOptions, Digest } from './Crypto.types';\nimport ExpoCrypto from './ExpoCrypto';\n\ndeclare const global: any;\n\nexport * from './Crypto.types';\n\nclass CryptoError extends TypeError {\n code = 'ERR_CRYPTO';\n\n constructor(message: string) {\n super(`expo-crypto: ${message}`);\n }\n}\n\n// @needsAudit\n/**\n * Generates completely random bytes using native implementations. The `byteCount` property\n * is a `number` indicating the number of bytes to generate in the form of a `Uint8Array`.\n * Falls back to `Math.random` during development to prevent issues with React Native Debugger.\n * @param byteCount - A number within the range from `0` to `1024`. Anything else will throw a `TypeError`.\n * @return An array of random bytes with the same length as the `byteCount`.\n */\nexport function getRandomBytes(byteCount: number): Uint8Array {\n assertByteCount(byteCount, 'getRandomBytes');\n const validByteCount = Math.floor(byteCount);\n if (__DEV__) {\n if (!global.nativeCallSyncHook || global.__REMOTEDEV__) {\n // remote javascript debugging is enabled\n const array = new Uint8Array(validByteCount);\n for (let i = 0; i < validByteCount; i++) {\n array[i] = Math.floor(Math.random() * 256);\n }\n return array;\n }\n }\n if (ExpoCrypto.getRandomValues) {\n const byteArray = new Uint8Array(validByteCount);\n ExpoCrypto.getRandomValues(byteArray);\n return byteArray;\n } else {\n throw new UnavailabilityError('expo-crypto', 'getRandomBytes');\n }\n}\n\n// @needsAudit\n/**\n * Generates completely random bytes using native implementations. The `byteCount` property\n * is a `number` indicating the number of bytes to generate in the form of a `Uint8Array`.\n * @param byteCount - A number within the range from `0` to `1024`. Anything else will throw a `TypeError`.\n * @return A promise that fulfills with an array of random bytes with the same length as the `byteCount`.\n */\nexport async function getRandomBytesAsync(byteCount: number): Promise<Uint8Array> {\n assertByteCount(byteCount, 'getRandomBytesAsync');\n const validByteCount = Math.floor(byteCount);\n if (ExpoCrypto.getRandomValues) {\n const byteArray = new Uint8Array(validByteCount);\n ExpoCrypto.getRandomValues(byteArray);\n return byteArray;\n } else {\n throw new UnavailabilityError('expo-crypto', 'getRandomBytesAsync');\n }\n}\n\nfunction assertByteCount(value: any, methodName: string): void {\n if (\n typeof value !== 'number' ||\n isNaN(value) ||\n Math.floor(value) < 0 ||\n Math.floor(value) > 1024\n ) {\n throw new TypeError(\n `expo-crypto: ${methodName}(${value}) expected a valid number from range 0...1024`\n );\n }\n}\n\nfunction assertAlgorithm(algorithm: CryptoDigestAlgorithm): void {\n if (!Object.values(CryptoDigestAlgorithm).includes(algorithm)) {\n throw new CryptoError(\n `Invalid algorithm provided. Expected one of: CryptoDigestAlgorithm.${Object.keys(\n CryptoDigestAlgorithm\n ).join(', AlgCryptoDigestAlgorithmorithm.')}`\n );\n }\n}\n\nfunction assertData(data: string): void {\n if (typeof data !== 'string') {\n throw new CryptoError(`Invalid data provided. Expected a string.`);\n }\n}\n\nfunction assertEncoding(encoding: CryptoEncoding): void {\n if (!Object.values(CryptoEncoding).includes(encoding)) {\n throw new CryptoError(\n `Invalid encoding provided. Expected one of: CryptoEncoding.${Object.keys(\n CryptoEncoding\n ).join(', CryptoEncoding.')}`\n );\n }\n}\n\n// @needsAudit\n/**\n * The `digestStringAsync()` method of `Crypto` generates a digest of the supplied `data` string with the provided digest `algorithm`.\n * A digest is a short fixed-length value derived from some variable-length input. **Cryptographic digests** should exhibit _collision-resistance_,\n * meaning that it's very difficult to generate multiple inputs that have equal digest values.\n * You can specify the returned string format as one of `CryptoEncoding`. By default, the resolved value will be formatted as a `HEX` string.\n * On web, this method can only be called from a secure origin (HTTPS) otherwise, an error will be thrown.\n *\n * @param algorithm The cryptographic hash function to use to transform a block of data into a fixed-size output.\n * @param data The value that will be used to generate a digest.\n * @param options Format of the digest string. Defaults to: `CryptoDigestOptions.HEX`.\n * @return Return a Promise which fulfills with a value representing the hashed input.\n *\n * @example\n * ```ts\n * const digest = await Crypto.digestStringAsync(\n * Crypto.CryptoDigestAlgorithm.SHA512,\n * '🥓 Easy to Digest! 💙'\n * );\n * ```\n */\nexport async function digestStringAsync(\n algorithm: CryptoDigestAlgorithm,\n data: string,\n options: CryptoDigestOptions = { encoding: CryptoEncoding.HEX }\n): Promise<Digest> {\n if (!ExpoCrypto.digestStringAsync) {\n throw new UnavailabilityError('expo-crypto', 'digestStringAsync');\n }\n\n assertAlgorithm(algorithm);\n assertData(data);\n assertEncoding(options.encoding);\n\n return await ExpoCrypto.digestStringAsync(algorithm, data, options);\n}\n\n/**\n * The `getRandomValues()` method of `Crypto` fills a provided `TypedArray` with cryptographically secure random values.\n *\n * @param typedArray An integer based [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) to fill with cryptographically secure random values. It modifies the input array in place.\n * @return The input array filled with cryptographically secure random values.\n *\n * @example\n * ```ts\n * const byteArray = new Uint8Array(16);\n * Crypto.getRandomValues(byteArray);\n * console.log('Your lucky bytes: ' + byteArray);\n * ```\n */\nexport function getRandomValues<T extends IntBasedTypedArray | UintBasedTypedArray>(\n typedArray: T\n): T {\n ExpoCrypto.getRandomValues(typedArray);\n return typedArray;\n}\n\n/**\n * The `randomUUID()` method returns a unique identifier based on the V4 UUID spec (RFC4122).\n * It uses cryptographically secure random values to generate the UUID.\n *\n * @return A string containing a newly generated UUIDv4 identifier\n * @example\n * ```ts\n * const UUID = Crypto.randomUUID();\n * console.log('Your UUID: ' + UUID);\n * ```\n */\nexport function randomUUID(): string {\n return ExpoCrypto.randomUUID();\n}\n\nconst digestLengths = {\n [CryptoDigestAlgorithm.SHA1]: 20,\n [CryptoDigestAlgorithm.SHA256]: 32,\n [CryptoDigestAlgorithm.SHA384]: 48,\n [CryptoDigestAlgorithm.SHA512]: 64,\n [CryptoDigestAlgorithm.MD2]: 16,\n [CryptoDigestAlgorithm.MD4]: 16,\n [CryptoDigestAlgorithm.MD5]: 16,\n};\n\n/**\n * The `digest()` method of `Crypto` generates a digest of the supplied `TypedArray` of bytes `data` with the provided digest `algorithm`.\n * A digest is a short fixed-length value derived from some variable-length input. **Cryptographic digests** should exhibit _collision-resistance_,\n * meaning that it's very difficult to generate multiple inputs that have equal digest values.\n * On web, this method can only be called from a secure origin (HTTPS) otherwise, an error will be thrown.\n *\n * @param algorithm The cryptographic hash function to use to transform a block of data into a fixed-size output.\n * @param data The value that will be used to generate a digest.\n * @return A Promise which fulfills with an ArrayBuffer representing the hashed input.\n * @example\n * ```ts\n * const array = new Uint8Array([1, 2, 3, 4, 5]);\n * const digest = await Crypto.digest(Crypto.CryptoDigestAlgorithm.SHA512, array);\n * console.log('Your digest: ' + digest);\n * ```\n */\nexport function digest(algorithm: CryptoDigestAlgorithm, data: BufferSource): Promise<ArrayBuffer> {\n return new Promise((resolve, reject) => {\n try {\n if (typeof ExpoCrypto.digestAsync === 'function') {\n resolve(ExpoCrypto.digestAsync(algorithm, data));\n } else {\n const output = new Uint8Array(digestLengths[algorithm]);\n ExpoCrypto.digest(algorithm, output, data);\n resolve(output.buffer);\n }\n } catch (error) {\n reject(error);\n }\n });\n}\n"]}
|
package/expo-module.config.json
CHANGED
package/ios/CryptoModule.swift
CHANGED
|
@@ -11,10 +11,6 @@ public class CryptoModule: Module {
|
|
|
11
11
|
|
|
12
12
|
Function("digestString", digestString)
|
|
13
13
|
|
|
14
|
-
AsyncFunction("getRandomBase64StringAsync", getRandomBase64String)
|
|
15
|
-
|
|
16
|
-
Function("getRandomBase64String", getRandomBase64String)
|
|
17
|
-
|
|
18
14
|
Function("getRandomValues", getRandomValues)
|
|
19
15
|
|
|
20
16
|
Function("digest", digest)
|
|
@@ -25,16 +21,6 @@ public class CryptoModule: Module {
|
|
|
25
21
|
}
|
|
26
22
|
}
|
|
27
23
|
|
|
28
|
-
private func getRandomBase64String(length: Int) throws -> String {
|
|
29
|
-
var bytes = [UInt8](repeating: 0, count: length)
|
|
30
|
-
let status = SecRandomCopyBytes(kSecRandomDefault, length, &bytes)
|
|
31
|
-
|
|
32
|
-
guard status == errSecSuccess else {
|
|
33
|
-
throw FailedGeneratingRandomBytesException(status)
|
|
34
|
-
}
|
|
35
|
-
return Data(bytes).base64EncodedString()
|
|
36
|
-
}
|
|
37
|
-
|
|
38
24
|
private func digestString(algorithm: DigestAlgorithm, str: String, options: DigestOptions) throws -> String {
|
|
39
25
|
guard let data = str.data(using: .utf8) else {
|
|
40
26
|
throw LossyConversionException()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
54cd80c39995e4f25ec6fabcdea48405
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
32dc4d0f1e1c579bd753123cc8466480ec6b9b31
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7f9081c92551b8baca84858c6e64077848e5f6403b105cf6879ebacf580f3624
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d64e963de08e10ebcc1a81de7d2ca5cffe60bcbac4f4f08fab80270c51e6242197402122a9461b025ec23e3aab53461830873daeecaedb65d1f29c204a89b194
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
82c6f859ddc266ee22f074e8c1babea2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4db79d4e861f46a1f131c52c494e0a5d53b65770
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
898c5b838ca25d6cad588194fdd84b9ac631b876a8fb23784279037584db1d4f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a3c93e93761b60ecda655471a16d91ba0bc0198c684224c679de1d48cdc0fc66f0b1c15f51c08f9620ef912c640a9204ac19bb144138bf30030c14d7f8b8a802
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"formatVersion": "1.1",
|
|
3
|
+
"component": {
|
|
4
|
+
"group": "host.exp.exponent",
|
|
5
|
+
"module": "expo.modules.crypto",
|
|
6
|
+
"version": "15.0.9-canary-20251210-1f163e3",
|
|
7
|
+
"attributes": {
|
|
8
|
+
"org.gradle.status": "release"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"createdBy": {
|
|
12
|
+
"gradle": {
|
|
13
|
+
"version": "9.0.0"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"variants": [
|
|
17
|
+
{
|
|
18
|
+
"name": "releaseVariantReleaseApiPublication",
|
|
19
|
+
"attributes": {
|
|
20
|
+
"org.gradle.category": "library",
|
|
21
|
+
"org.gradle.dependency.bundling": "external",
|
|
22
|
+
"org.gradle.libraryelements": "aar",
|
|
23
|
+
"org.gradle.usage": "java-api"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
{
|
|
27
|
+
"name": "expo.modules.crypto-15.0.9-canary-20251210-1f163e3.aar",
|
|
28
|
+
"url": "expo.modules.crypto-15.0.9-canary-20251210-1f163e3.aar",
|
|
29
|
+
"size": 25459,
|
|
30
|
+
"sha512": "a3c93e93761b60ecda655471a16d91ba0bc0198c684224c679de1d48cdc0fc66f0b1c15f51c08f9620ef912c640a9204ac19bb144138bf30030c14d7f8b8a802",
|
|
31
|
+
"sha256": "898c5b838ca25d6cad588194fdd84b9ac631b876a8fb23784279037584db1d4f",
|
|
32
|
+
"sha1": "4db79d4e861f46a1f131c52c494e0a5d53b65770",
|
|
33
|
+
"md5": "82c6f859ddc266ee22f074e8c1babea2"
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "releaseVariantReleaseRuntimePublication",
|
|
39
|
+
"attributes": {
|
|
40
|
+
"org.gradle.category": "library",
|
|
41
|
+
"org.gradle.dependency.bundling": "external",
|
|
42
|
+
"org.gradle.libraryelements": "aar",
|
|
43
|
+
"org.gradle.usage": "java-runtime"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": [
|
|
46
|
+
{
|
|
47
|
+
"group": "org.jetbrains.kotlin",
|
|
48
|
+
"module": "kotlin-stdlib-jdk7",
|
|
49
|
+
"version": {
|
|
50
|
+
"requires": "2.1.20"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"files": [
|
|
55
|
+
{
|
|
56
|
+
"name": "expo.modules.crypto-15.0.9-canary-20251210-1f163e3.aar",
|
|
57
|
+
"url": "expo.modules.crypto-15.0.9-canary-20251210-1f163e3.aar",
|
|
58
|
+
"size": 25459,
|
|
59
|
+
"sha512": "a3c93e93761b60ecda655471a16d91ba0bc0198c684224c679de1d48cdc0fc66f0b1c15f51c08f9620ef912c640a9204ac19bb144138bf30030c14d7f8b8a802",
|
|
60
|
+
"sha256": "898c5b838ca25d6cad588194fdd84b9ac631b876a8fb23784279037584db1d4f",
|
|
61
|
+
"sha1": "4db79d4e861f46a1f131c52c494e0a5d53b65770",
|
|
62
|
+
"md5": "82c6f859ddc266ee22f074e8c1babea2"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "releaseVariantReleaseSourcePublication",
|
|
68
|
+
"attributes": {
|
|
69
|
+
"org.gradle.category": "documentation",
|
|
70
|
+
"org.gradle.dependency.bundling": "external",
|
|
71
|
+
"org.gradle.docstype": "sources",
|
|
72
|
+
"org.gradle.usage": "java-runtime"
|
|
73
|
+
},
|
|
74
|
+
"files": [
|
|
75
|
+
{
|
|
76
|
+
"name": "expo.modules.crypto-15.0.9-canary-20251210-1f163e3-sources.jar",
|
|
77
|
+
"url": "expo.modules.crypto-15.0.9-canary-20251210-1f163e3-sources.jar",
|
|
78
|
+
"size": 2382,
|
|
79
|
+
"sha512": "d64e963de08e10ebcc1a81de7d2ca5cffe60bcbac4f4f08fab80270c51e6242197402122a9461b025ec23e3aab53461830873daeecaedb65d1f29c204a89b194",
|
|
80
|
+
"sha256": "7f9081c92551b8baca84858c6e64077848e5f6403b105cf6879ebacf580f3624",
|
|
81
|
+
"sha1": "32dc4d0f1e1c579bd753123cc8466480ec6b9b31",
|
|
82
|
+
"md5": "54cd80c39995e4f25ec6fabcdea48405"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
563ac09729047792f570dc11731fcecb
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3898051f022f6ab8da99b785fd92970f0c9a3821
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
82f8ed9189038f6e69a6b8a7044f5658bce598bba054a923760eeea8e5f5e7eb
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a7659dcd6a91cf8f16cb40436818ed30c0d11296436a47611804bfc84fc9364819213cd1572be7ac73e8867f31fca284d66f115289f9dcefcef9577b2cb4b429
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.crypto</artifactId>
|
|
12
|
-
<version>15.0.9-canary-
|
|
12
|
+
<version>15.0.9-canary-20251210-1f163e3</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.crypto</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0dd70f53316d3b016146044c82647d39
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
658c1e7c99a8d758eeae2c1043a487ce268dea11
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
82ff5f59b6a0906bd4edef7388ecb664eb85efe11974317a467ccff2b88c5a38
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8b11c1a5987c9e844dc447cf7dff03d06f87b38a0d8e099ced5eebf50e9918ee8beab8aa55710035cbb6d8cb942e3e1b466ca78e4407b988f972982f322cb71f
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.crypto</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>15.0.9-canary-
|
|
7
|
-
<release>15.0.9-canary-
|
|
6
|
+
<latest>15.0.9-canary-20251210-1f163e3</latest>
|
|
7
|
+
<release>15.0.9-canary-20251210-1f163e3</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>15.0.9-canary-
|
|
9
|
+
<version>15.0.9-canary-20251210-1f163e3</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20251210173408</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
748c49755936ae9e5375dfee0aa6c641
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
df3970b7f346cca5af5db35da89d64066da57b66
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2fa9b16d33f0e274d7b03c873ab08f09987e6d099e56b68f94172940ac351860
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e3ad2754d3ee1e75e59d4fbf9372c29a8f5786b1a2eda61283618cd71d99754c832a2208ad03935de6e724239fd10a12e8dae111aab4e4d01a7a539938bdd658
|
package/mocks/ExpoCrypto.ts
CHANGED
|
@@ -19,10 +19,6 @@ export function digestString(
|
|
|
19
19
|
return '';
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export function getRandomBase64String(length: number): string {
|
|
23
|
-
return '';
|
|
24
|
-
}
|
|
25
|
-
|
|
26
22
|
export function getRandomValues(array: TypedArray): TypedArray {
|
|
27
23
|
return null; // TODO: Replace with mock for value of type TypedArray.
|
|
28
24
|
}
|
|
@@ -38,7 +34,3 @@ export async function digestStringAsync(
|
|
|
38
34
|
): Promise<string> {
|
|
39
35
|
return '';
|
|
40
36
|
}
|
|
41
|
-
|
|
42
|
-
export async function getRandomBase64StringAsync(length: number): Promise<string> {
|
|
43
|
-
return '';
|
|
44
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-crypto",
|
|
3
|
-
"version": "15.0.9-canary-
|
|
3
|
+
"version": "15.0.9-canary-20251210-1f163e3",
|
|
4
4
|
"description": "Provides cryptography primitives for Android, iOS and web.",
|
|
5
5
|
"main": "build/Crypto.js",
|
|
6
6
|
"types": "build/Crypto.d.ts",
|
|
@@ -38,13 +38,11 @@
|
|
|
38
38
|
"jest": {
|
|
39
39
|
"preset": "expo-module-scripts"
|
|
40
40
|
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"base64-js": "^1.3.0"
|
|
43
|
-
},
|
|
41
|
+
"dependencies": {},
|
|
44
42
|
"devDependencies": {
|
|
45
|
-
"expo-module-scripts": "5.1.0-canary-
|
|
43
|
+
"expo-module-scripts": "5.1.0-canary-20251210-1f163e3"
|
|
46
44
|
},
|
|
47
45
|
"peerDependencies": {
|
|
48
|
-
"expo": "55.0.0-canary-
|
|
46
|
+
"expo": "55.0.0-canary-20251210-1f163e3"
|
|
49
47
|
}
|
|
50
48
|
}
|
package/src/Crypto.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { toByteArray } from 'base64-js';
|
|
2
1
|
import { UnavailabilityError, UintBasedTypedArray, IntBasedTypedArray } from 'expo-modules-core';
|
|
3
2
|
|
|
4
3
|
import { CryptoDigestAlgorithm, CryptoEncoding, CryptoDigestOptions, Digest } from './Crypto.types';
|
|
@@ -41,9 +40,6 @@ export function getRandomBytes(byteCount: number): Uint8Array {
|
|
|
41
40
|
const byteArray = new Uint8Array(validByteCount);
|
|
42
41
|
ExpoCrypto.getRandomValues(byteArray);
|
|
43
42
|
return byteArray;
|
|
44
|
-
} else if (ExpoCrypto.getRandomBase64String) {
|
|
45
|
-
const base64 = ExpoCrypto.getRandomBase64String(validByteCount);
|
|
46
|
-
return toByteArray(base64);
|
|
47
43
|
} else {
|
|
48
44
|
throw new UnavailabilityError('expo-crypto', 'getRandomBytes');
|
|
49
45
|
}
|
|
@@ -63,9 +59,6 @@ export async function getRandomBytesAsync(byteCount: number): Promise<Uint8Array
|
|
|
63
59
|
const byteArray = new Uint8Array(validByteCount);
|
|
64
60
|
ExpoCrypto.getRandomValues(byteArray);
|
|
65
61
|
return byteArray;
|
|
66
|
-
} else if (ExpoCrypto.getRandomBase64StringAsync) {
|
|
67
|
-
const base64 = await ExpoCrypto.getRandomBase64StringAsync(validByteCount);
|
|
68
|
-
return toByteArray(base64);
|
|
69
62
|
} else {
|
|
70
63
|
throw new UnavailabilityError('expo-crypto', 'getRandomBytesAsync');
|
|
71
64
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d828acd0ab9b2a1ce162926327c4f825
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f7fc7f161cfe92554e5bd6cac8e609b3f5919d6c
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fbb9dee297c3061dc4d03768b2c257d77e8a8b125bc53523c3b9d63496404bd8
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9ee66fd92f77abd9cfefad61c67aba460278f8294792432e98d13500e525acc0622ac8c7ac3d107a0c6e3a9f9c206b4b805fdd739ebdaad0af5507af7374f337
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4a0dad3bf6f185df34f88d877dd98d34
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
fdf285e1ead45eec33d00cd796533f91b793ad31
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
794d18f004ec3297f48836f2fdd3e381d562c7d8227ec3743597901f4b3e4c23
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
bef720ed26b46e6da5eec7534be4288c84fdd08dc86d6d6ffc3cb18b3eea970563fd4b05fab643d8f80701f4dba340afb4aad3f3ad6cd432cf183065ade5420e
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"formatVersion": "1.1",
|
|
3
|
-
"component": {
|
|
4
|
-
"group": "host.exp.exponent",
|
|
5
|
-
"module": "expo.modules.crypto",
|
|
6
|
-
"version": "15.0.9-canary-20251205-a1dedc6",
|
|
7
|
-
"attributes": {
|
|
8
|
-
"org.gradle.status": "release"
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"createdBy": {
|
|
12
|
-
"gradle": {
|
|
13
|
-
"version": "9.0.0"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"variants": [
|
|
17
|
-
{
|
|
18
|
-
"name": "releaseVariantReleaseApiPublication",
|
|
19
|
-
"attributes": {
|
|
20
|
-
"org.gradle.category": "library",
|
|
21
|
-
"org.gradle.dependency.bundling": "external",
|
|
22
|
-
"org.gradle.libraryelements": "aar",
|
|
23
|
-
"org.gradle.usage": "java-api"
|
|
24
|
-
},
|
|
25
|
-
"files": [
|
|
26
|
-
{
|
|
27
|
-
"name": "expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.aar",
|
|
28
|
-
"url": "expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.aar",
|
|
29
|
-
"size": 32070,
|
|
30
|
-
"sha512": "bef720ed26b46e6da5eec7534be4288c84fdd08dc86d6d6ffc3cb18b3eea970563fd4b05fab643d8f80701f4dba340afb4aad3f3ad6cd432cf183065ade5420e",
|
|
31
|
-
"sha256": "794d18f004ec3297f48836f2fdd3e381d562c7d8227ec3743597901f4b3e4c23",
|
|
32
|
-
"sha1": "fdf285e1ead45eec33d00cd796533f91b793ad31",
|
|
33
|
-
"md5": "4a0dad3bf6f185df34f88d877dd98d34"
|
|
34
|
-
}
|
|
35
|
-
]
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"name": "releaseVariantReleaseRuntimePublication",
|
|
39
|
-
"attributes": {
|
|
40
|
-
"org.gradle.category": "library",
|
|
41
|
-
"org.gradle.dependency.bundling": "external",
|
|
42
|
-
"org.gradle.libraryelements": "aar",
|
|
43
|
-
"org.gradle.usage": "java-runtime"
|
|
44
|
-
},
|
|
45
|
-
"dependencies": [
|
|
46
|
-
{
|
|
47
|
-
"group": "org.jetbrains.kotlin",
|
|
48
|
-
"module": "kotlin-stdlib-jdk7",
|
|
49
|
-
"version": {
|
|
50
|
-
"requires": "2.1.20"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"files": [
|
|
55
|
-
{
|
|
56
|
-
"name": "expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.aar",
|
|
57
|
-
"url": "expo.modules.crypto-15.0.9-canary-20251205-a1dedc6.aar",
|
|
58
|
-
"size": 32070,
|
|
59
|
-
"sha512": "bef720ed26b46e6da5eec7534be4288c84fdd08dc86d6d6ffc3cb18b3eea970563fd4b05fab643d8f80701f4dba340afb4aad3f3ad6cd432cf183065ade5420e",
|
|
60
|
-
"sha256": "794d18f004ec3297f48836f2fdd3e381d562c7d8227ec3743597901f4b3e4c23",
|
|
61
|
-
"sha1": "fdf285e1ead45eec33d00cd796533f91b793ad31",
|
|
62
|
-
"md5": "4a0dad3bf6f185df34f88d877dd98d34"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"name": "releaseVariantReleaseSourcePublication",
|
|
68
|
-
"attributes": {
|
|
69
|
-
"org.gradle.category": "documentation",
|
|
70
|
-
"org.gradle.dependency.bundling": "external",
|
|
71
|
-
"org.gradle.docstype": "sources",
|
|
72
|
-
"org.gradle.usage": "java-runtime"
|
|
73
|
-
},
|
|
74
|
-
"files": [
|
|
75
|
-
{
|
|
76
|
-
"name": "expo.modules.crypto-15.0.9-canary-20251205-a1dedc6-sources.jar",
|
|
77
|
-
"url": "expo.modules.crypto-15.0.9-canary-20251205-a1dedc6-sources.jar",
|
|
78
|
-
"size": 2443,
|
|
79
|
-
"sha512": "9ee66fd92f77abd9cfefad61c67aba460278f8294792432e98d13500e525acc0622ac8c7ac3d107a0c6e3a9f9c206b4b805fdd739ebdaad0af5507af7374f337",
|
|
80
|
-
"sha256": "fbb9dee297c3061dc4d03768b2c257d77e8a8b125bc53523c3b9d63496404bd8",
|
|
81
|
-
"sha1": "f7fc7f161cfe92554e5bd6cac8e609b3f5919d6c",
|
|
82
|
-
"md5": "d828acd0ab9b2a1ce162926327c4f825"
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
]
|
|
87
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e2c37142218482fa73a92d835debadbd
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5ab6e63de51115b120e3afec238f33b87d5e038e
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8fe65321228b0ef0ffa8e44697ff212bd09b334a0d500580d9f4e0cd1bb0979e
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
636eb995b9848f10e3a5aa36faf8fb48a70721f61cf3c6297c15241a6430b443d52377956da9c88560eb169726c383a9167711c3117c78264d2f85523798f732
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
74fc9686224e0bc64c46aec669ec7287
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
583ad961700f8b29a2333a25ba1405c7c88d8e93
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
09a9e9b41aed8a3050d68ac10d22fba316a4c989865750c78a2809c5391ce411
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
13b51a494d1a1d3a98deb4ed91dd12c65db354cb72010443c811d8d4d2a6fc3f829f13df9dea1af9afce468e241d7ecb924e7bb2bf54582e2ccfbb8378ee17cb
|