GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — crypto: remove deprecated legacy API · nodejs/node@d2ee7d6

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • crypto.md
    • deprecations.md
  • lib
    • crypto.js
  • test/parallel
    • test-crypto-classes.js
    • test-crypto-deprecated.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/crypto.md‎

Copy file name to clipboardExpand all lines: doc/api/crypto.md
-20Lines changed: 0 additions & 20 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1415,25 +1415,6 @@ something has to be unpredictable and unique, but does not have to be secret;
14151415
it is important to remember that an attacker must not be able to predict ahead
14161416
of time what a given IV will be.
14171417

1418-
### crypto.createCredentials(details)
1419-
<!-- YAML
1420-
added: v0.1.92
1421-
deprecated: v0.11.13
1422-
-->
1423-
1424-
> Stability: 0 - Deprecated: Use [`tls.createSecureContext()`][] instead.
1425-
1426-
- `details` {Object} Identical to [`tls.createSecureContext()`][].
1427-
- Returns: {tls.SecureContext}
1428-
1429-
The `crypto.createCredentials()` method is a deprecated function for creating
1430-
and returning a `tls.SecureContext`. It should not be used. Replace it with
1431-
[`tls.createSecureContext()`][] which has the exact same arguments and return
1432-
value.
1433-
1434-
Returns a `tls.SecureContext`, as-if [`tls.createSecureContext()`][] had been
1435-
called.
1436-
14371418
### crypto.createDecipher(algorithm, password[, options])
14381419
<!-- YAML
14391420
added: v0.1.94
@@ -2750,7 +2731,6 @@ the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL.
27502731
[`sign.update()`]: #crypto_sign_update_data_inputencoding
27512732
[`stream.transform` options]: stream.html#stream_new_stream_transform_options
27522733
[`stream.Writable` options]: stream.html#stream_constructor_new_stream_writable_options
2753-
[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_options
27542734
[`verify.update()`]: #crypto_verify_update_data_inputencoding
27552735
[`verify.verify()`]: #crypto_verify_verify_object_signature_signatureformat
27562736
[AEAD algorithms]: https://en.wikipedia.org/wiki/Authenticated_encryption
Collapse file

‎doc/api/deprecations.md‎

Copy file name to clipboardExpand all lines: doc/api/deprecations.md
+4-5Lines changed: 4 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -142,17 +142,17 @@ undefined `digest` will throw a `TypeError`.
142142
<a id="DEP0010"></a>
143143
### DEP0010: crypto.createCredentials
144144

145-
Type: Runtime
145+
Type: End-of-Life
146146

147-
The [`crypto.createCredentials()`][] API is deprecated. Please use
147+
The `crypto.createCredentials()` API was removed. Please use
148148
[`tls.createSecureContext()`][] instead.
149149

150150
<a id="DEP0011"></a>
151151
### DEP0011: crypto.Credentials
152152

153-
Type: Runtime
153+
Type: End-of-Life
154154

155-
The `crypto.Credentials` class is deprecated. Please use [`tls.SecureContext`][]
155+
The `crypto.Credentials` class was removed. Please use [`tls.SecureContext`][]
156156
instead.
157157

158158
<a id="DEP0012"></a>
@@ -1020,7 +1020,6 @@ The option `produceCachedData` has been deprecated. Use
10201020
[`console.log()`]: console.html#console_console_log_data_args
10211021
[`crypto.createCipher()`]: crypto.html#crypto_crypto_createcipher_algorithm_password_options
10221022
[`crypto.createCipheriv()`]: crypto.html#crypto_crypto_createcipheriv_algorithm_key_iv_options
1023-
[`crypto.createCredentials()`]: crypto.html#crypto_crypto_createcredentials_details
10241023
[`crypto.createDecipher()`]: crypto.html#crypto_crypto_createdecipher_algorithm_password_options
10251024
[`crypto.createDecipheriv()`]: crypto.html#crypto_crypto_createdecipheriv_algorithm_key_iv_options
10261025
[`crypto.DEFAULT_ENCODING`]: crypto.html#crypto_crypto_default_encoding
Collapse file

‎lib/crypto.js‎

Copy file name to clipboardExpand all lines: lib/crypto.js
-18Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -228,23 +228,5 @@ Object.defineProperties(exports, {
228228
configurable: false,
229229
enumerable: true,
230230
value: constants
231-
},
232-
233-
// Legacy API
234-
createCredentials: {
235-
configurable: true,
236-
enumerable: true,
237-
get: deprecate(() => {
238-
return require('tls').createSecureContext;
239-
}, 'crypto.createCredentials is deprecated. ' +
240-
'Use tls.createSecureContext instead.', 'DEP0010')
241-
},
242-
Credentials: {
243-
configurable: true,
244-
enumerable: true,
245-
get: deprecate(function() {
246-
return require('tls').SecureContext;
247-
}, 'crypto.Credentials is deprecated. ' +
248-
'Use tls.SecureContext instead.', 'DEP0011')
249231
}
250232
});
Collapse file

‎test/parallel/test-crypto-classes.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-classes.js
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const TEST_CASES = {
1919
'DiffieHellman': [1024],
2020
'DiffieHellmanGroup': ['modp5'],
2121
'ECDH': ['prime256v1'],
22-
'Credentials': []
2322
};
2423

2524
if (!common.hasFipsCrypto) {
Collapse file

‎test/parallel/test-crypto-deprecated.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-crypto-deprecated.js
-22Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.