Home
last modified time | relevance | path

Searched refs:crypto (Results 1 – 25 of 121) sorted by relevance

12345

/expo/packages/expo-standard-web-crypto/
H A DREADME.md1 # expo-standard-crypto
11 …ow the instructions for installing [`expo-crypto`](https://github.com/expo/expo/blob/main/packages…
16 npm install expo-standard-web-crypto
21 … package: you can import a `Crypto` instance or you can globally define `crypto`. Some code may ex…
26 import crypto from 'expo-standard-web-crypto';
29 Globally defining `crypto`:
32 import { polyfillWebCrypto } from 'expo-standard-web-crypto';
35 // crypto is now globally defined
38 In either case, if your runtime environment already defines `crypto` globally, this package uses th…
/expo/docs/pages/versions/unversioned/sdk/
H A Dcrypto.mdx3 description: A universal library for crypto operations.
4 sourceCodeUrl: 'https://github.com/expo/expo/tree/main/packages/expo-crypto'
5 packageName: 'expo-crypto'
6 iconUrl: '/static/images/packages/expo-crypto.png'
14 `expo-crypto` enables you to hash data in an equivalent manner to the Node.js core `crypto` API.
24 <SnackInline label='Basic Crypto usage' dependencies={['expo-crypto']}>
29 import * as Crypto from 'expo-crypto';
39 /* Some crypto operation... */
67 import * as Crypto from 'expo-crypto';
70 <APISection packageName="expo-crypto" apiName="Crypto" />
H A Drandom.mdx12 …ecated:** This module will no longer be available in SDK 49. Use [expo-crypto](crypto.mdx) instead.
14 … values equivalent to Node.js core `crypto.randomBytes` API. `expo-random` also works with `expo-s…
/expo/docs/pages/versions/v49.0.0/sdk/
H A Dcrypto.mdx3 description: A universal library for crypto operations.
4 sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-49/packages/expo-crypto'
5 packageName: 'expo-crypto'
6 iconUrl: '/static/images/packages/expo-crypto.png'
14 `expo-crypto` enables you to hash data in an equivalent manner to the Node.js core `crypto` API.
24 <SnackInline label='Basic Crypto usage' dependencies={['expo-crypto']}>
29 import * as Crypto from 'expo-crypto';
39 /* Some crypto operation... */
67 import * as Crypto from 'expo-crypto';
70 <APISection packageName="expo-crypto" apiName="Crypto" />
H A Drandom.mdx12 …ecated:** This module will no longer be available in SDK 49. Use [expo-crypto](crypto.mdx) instead.
14 … values equivalent to Node.js core `crypto.randomBytes` API. `expo-random` also works with `expo-s…
/expo/docs/pages/versions/v47.0.0/sdk/
H A Dcrypto.mdx3 description: A universal library for crypto operations.
4 sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-47/packages/expo-crypto'
5 packageName: 'expo-crypto'
6 iconUrl: '/static/images/packages/expo-crypto.png'
14 `expo-crypto` enables you to hash data in an equivalent manner to the Node.js core `crypto` API.
24 <SnackInline label='Basic Crypto usage' dependencies={['expo-crypto']}>
29 import * as Crypto from 'expo-crypto';
39 /* Some crypto operation... */
67 import * as Crypto from 'expo-crypto';
70 <APISection packageName="expo-crypto" apiName="Crypto" />
/expo/docs/pages/versions/v46.0.0/sdk/
H A Dcrypto.mdx3 description: A universal library for crypto operations.
4 sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-46/packages/expo-crypto'
5 packageName: 'expo-crypto'
6 iconUrl: '/static/images/packages/expo-crypto.png'
14 `expo-crypto` enables you to hash data in an equivalent manner to the Node.js core `crypto` API.
24 <SnackInline label='Basic Crypto usage' dependencies={['expo-crypto']}>
29 import * as Crypto from 'expo-crypto';
39 /* Some crypto operation... */
67 import * as Crypto from 'expo-crypto';
70 <APISection packageName="expo-crypto" apiName="Crypto" />
/expo/docs/pages/versions/v48.0.0/sdk/
H A Dcrypto.mdx3 description: A universal library for crypto operations.
4 sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-48/packages/expo-crypto'
5 packageName: 'expo-crypto'
6 iconUrl: '/static/images/packages/expo-crypto.png'
14 `expo-crypto` enables you to hash data in an equivalent manner to the Node.js core `crypto` API.
24 <SnackInline label='Basic Crypto usage' dependencies={['expo-crypto']}>
29 import * as Crypto from 'expo-crypto';
39 /* Some crypto operation... */
67 import * as Crypto from 'expo-crypto';
70 <APISection packageName="expo-crypto" apiName="Crypto" />
H A Drandom.mdx12 …ecated:** This module will no longer be available in SDK 49. Use [expo-crypto](crypto.mdx) instead.
14 … values equivalent to Node.js core `crypto.randomBytes` API. `expo-random` also works with `expo-s…
/expo/packages/expo-random/
H A DREADME.md5 This package is now deprecated in favor of `expo-crypto`, which provides the same functionality.
6 To migrate, replace all imports from `expo-random` with imports from `expo-crypto`.
8 …s to address use cases that other APIs like the web's `crypto.getRandomValues` and Node's `crypto.…
14 … web's `crypto.getRandomValues` by installing [expo-standard-web-crypto](https://github.com/expo/e…
17 import { polyfillWebCrypto } from 'expo-standard-web-crypto';
20 // crypto.getRandomValues is now globally defined
/expo/packages/expo-standard-web-crypto/build/
H A Dindex.js8 const webCrypto = typeof crypto !== 'undefined' ? crypto : new Crypto();
11 if (typeof crypto === 'undefined') {
H A Dindex.js.map1 …crypto*/\nimport getRandomValues from './getRandomValues';\n\nclass Crypto {\n getRandomValues<TA…
/expo/packages/expo-standard-web-crypto/src/
H A Dindex.ts10 const webCrypto = typeof crypto !== 'undefined' ? crypto : new Crypto();
15 if (typeof crypto === 'undefined') {
/expo/packages/expo-modules-core/src/uuid/
H A Duuid.web.ts8 typeof crypto === 'undefined' || typeof crypto.randomUUID === 'undefined'
10 : crypto;
/expo/packages/expo-modules-core/build/uuid/
H A Duuid.web.js5 const cryptoObject = typeof crypto === 'undefined' || typeof crypto.randomUUID === 'undefined'
7 : crypto;
H A Duuid.web.js.map1 …crypto === 'undefined' || typeof crypto.randomUUID === 'undefined'\n ? require('crypto')\n …
/expo/packages/expo-crypto/
H A DREADME.md2 <a href="https://docs.expo.dev/versions/latest/sdk/crypto/">
4 src="../../.github/resources/expo-crypto.svg"
5 alt="expo-crypto"
14 …main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/crypto.mdx)
15 - [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/crypto/)
19 …PI documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/crypto/).
28 npx expo install expo-crypto
/expo/packages/expo-standard-web-crypto/src/__tests__/
H A Dindex-test.ts1 import crypto from '../index';
4 expect(crypto.getRandomValues).toBeDefined();
/expo/packages/@expo/metro-config/src/utils/
H A Dhash.ts1 import crypto from 'crypto';
4 return crypto.createHash('md5').update(str).digest('hex');
/expo/packages/@expo/metro-config/build/utils/
H A Dhash.js.map1 …crypto","createHash","update","digest"],"sources":["../../src/utils/hash.ts"],"sourcesContent":["i…
/expo/packages/@expo/cli/__mocks__/
H A Dtempy.ts1 import crypto from 'crypto';
7 return path.join(os.tmpdir(), crypto.randomBytes(16).toString('hex'));
/expo/packages/@expo/metro-config/src/transformer/
H A DgetCacheKey.ts1 import crypto from 'crypto';
14 const key = crypto.createHash('md5');
/expo/packages/expo-random/build/
H A DExpoRandom.web.js8 return (window.crypto ?? window.msCrypto).getRandomValues(array);
13 return (window.crypto ?? window.msCrypto).getRandomValues(array);
/expo/packages/expo-random/src/
H A DExpoRandom.web.ts8 return (window.crypto ?? window.msCrypto).getRandomValues(array);
13 return (window.crypto ?? window.msCrypto).getRandomValues(array);
/expo/packages/expo-crypto/build/
H A DExpoCrypto.web.js3 const getCrypto = () => window.crypto ?? window.msCrypto;
9 if (!crypto.subtle) {
14 const hashedData = await crypto.subtle.digest(algorithm, buffer);

12345