(password = '')
| 59400 | function processPasswordR2R3R4(password = '') { |
| 59401 | const out = new Buffer(32); |
| 59402 | const length = password.length; |
| 59403 | let index = 0; |
| 59404 | |
| 59405 | while (index < length && index < 32) { |
| 59406 | const code = password.charCodeAt(index); |
| 59407 | |
| 59408 | if (code > 0xff) { |
| 59409 | throw new Error('Password contains one or more invalid characters.'); |
| 59410 | } |
| 59411 | |
| 59412 | out[index] = code; |
| 59413 | index++; |
| 59414 | } |
| 59415 |
no test coverage detected