MCPcopy Create free account
hub / github.com/cryptii/cryptii / constructor

Method constructor

src/Encoder/BifidCipher.js:32–53  ·  view source on GitHub ↗

* Constructor

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

addSettingMethod · 0.80
setSettingValuesMethod · 0.80

Tested by

no test coverage detected