MCPcopy Create free account
hub / github.com/apache/cloudstack / genDES

Method genDES

systemvm/agent/noVNC/core/rfb.js:3226–3231  ·  view source on GitHub ↗
(password, challenge)

Source from the content-addressed store, hash-verified

3224 }
3225
3226 static genDES(password, challenge) {
3227 const passwordChars = password.split('').map(c => c.charCodeAt(0));
3228 const key = legacyCrypto.importKey(
3229 "raw", passwordChars, { name: "DES-ECB" }, false, ["encrypt"]);
3230 return legacyCrypto.encrypt({ name: "DES-ECB" }, key, challenge);
3231 }
3232}
3233
3234// Class Methods

Callers 1

_negotiateStdVNCAuthMethod · 0.80

Calls 3

mapMethod · 0.80
encryptMethod · 0.65
importKeyMethod · 0.45

Tested by

no test coverage detected