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

Method getRotors

src/Encoder/Enigma.js:975–977  ·  view source on GitHub ↗

* Maps given names to rotor entries. * @protected * @param {string[]} names Rotor names * @return {object[]} Rotor entries

(names)

Source from the content-addressed store, hash-verified

973 * @return {object[]} Rotor entries
974 */
975 static getRotors (names) {
976 return names.map(name => EnigmaEncoder.getRotor(name))
977 }
978}

Callers 2

constructorMethod · 0.80
applyModelMethod · 0.80

Calls 1

getRotorMethod · 0.80

Tested by

no test coverage detected