-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrute.js
43 lines (32 loc) · 1.03 KB
/
brute.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
var GematriaPrimus = require('./lib/gematriaprimus');
var LiberPrimus = require('./data/liberprimus');
var maps = require('./lib/maps');
var seqs = require('./lib/seqs');
// var test = {
// word: 'ᚳᛠᛖ',
// dict: [
// ['(C/K)', 'A', 'N'],
// ['(C/K)', 'E', 'Y']
// ]
// };
var test = {
word: 'ᛠᛖᛁᚷᛉᚷᛋ',
dict: [
['M', 'A', '(S/Z)', 'T', 'E', 'R', '(S/Z)']
]
};
var key = null;
// for (var i = 0; i < test.dict.length; i++) {
// key = GematriaPrimus.find_key(test.word, test.dict[i]);
// console.log(test.word, test.dict[i], key);
// console.log(seqs.primes(30));
// }
// var numbers = require('./lib/numbers');
// var n = 10;
// console.log(seqs.primes(n), numbers.primes(n));
function translate() {
console.log(GematriaPrimus.decrypt('', [43,31,73,17,11,31,71]), '\n');
console.log(GematriaPrimus.decrypt(LiberPrimus.get_page(56).join(''), seqs.primes(1000).map(maps.phi)) + '\n');
console.log(GematriaPrimus.translate(LiberPrimus.get_page(57).join('')));
}
translate();