MCPcopy Create free account
hub / github.com/cryptii/cryptii / getAlgorithm

Method getAlgorithm

src/Encoder/BlockCipher.js:283–285  ·  view source on GitHub ↗

* Returns algorithm for given name. * @protected * @param {string} name Algorithm name * @return {?object} Algorithm object or null, if not found.

(name)

Source from the content-addressed store, hash-verified

281 * @return {?object} Algorithm object or null, if not found.
282 */
283 static getAlgorithm (name) {
284 return algorithms.find(algorithm => algorithm.name === name)
285 }
286
287 /**
288 * Returns algorithm objects available in the current environment.

Callers 2

settingValueDidChangeMethod · 0.80
createCipherMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected