(text)
| 374 | const BLOCK_SIZE = 16; |
| 375 | |
| 376 | function pad(text) { |
| 377 | const padding = BLOCK_SIZE - text.length % BLOCK_SIZE; |
| 378 | return text + String.fromCharCode(padding).repeat(padding); |
| 379 | } |
| 380 | |
| 381 | function unpad(text) { |
| 382 | const padding = text.charCodeAt(text.length - 1); |
no outgoing calls
no test coverage detected