(password, challenge)
| 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 |
no test coverage detected