summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-yggdrasil/htdocs/luci-static/resources/view/yggdrasil/keys.js
blob: 7e9bef46e4da7f3dc4c3f83a8b08e40dd8a02d14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
'use strict';
'require view';
'require form';

return view.extend({
	render: function() {
		var m, s, o;

		m = new form.Map('yggdrasil', 'Yggdrasil');

		s = m.section(form.TypedSection, "yggdrasil", _("Encryption keys")); 
		s.anonymous = true;

		s.option(form.Value, "PublicKey", _("Encryption public key"));
		s.option(form.Value, "PrivateKey", _("Encryption private key"),
			_("Keep this private. When compromised, generate a new keypair and IPv6."));

		return m.render();
	}
});