* Constructor
()
| 30 | * Constructor |
| 31 | */ |
| 32 | constructor () { |
| 33 | super() |
| 34 | this.addSetting({ |
| 35 | name: 'key', |
| 36 | type: 'text', |
| 37 | value: '', |
| 38 | uniqueChars: true, |
| 39 | minLength: 0, |
| 40 | caseSensitivity: false |
| 41 | }) |
| 42 | |
| 43 | // Create internal Polybius square encoder instance |
| 44 | this._polybiusSquare = new PolybiusSquareEncoder() |
| 45 | this._polybiusSquare.setSettingValues({ |
| 46 | alphabet, |
| 47 | rows: '12345', |
| 48 | columns: '12345', |
| 49 | separator: '', |
| 50 | caseSensitivity: false, |
| 51 | includeForeignChars: false |
| 52 | }) |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * Performs encode on given content. |
nothing calls this directly
no test coverage detected