Edit in JSFiddle

// Initialize
var worker = new encrypter({
    mode: 'NORENDER',
    key: {
        contents: '-----BEGIN PUBLIC KEY-----MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA13PTo+cgJMtUc68br9CDO1+yX9L20QcBCv3HfA1lCkO9cLfi27wZ+scwISTpNXOM8MLRq3iTTHFF7JYLrk0ztU6E3fCqut7M/0YyHqwHbOZaw/msFBRkkfmvWq0UXNwksi7T26Yn7OHAVMyHuMFidz+ggQxsIW9UVryHwvkWA+qdqcMxRy+kdw+UyFGWuSJgDEIjChffICmHiU2T+NEXQp9ChjxLhvCVj6YdRlsM+EbZynPFReoIbLyI9FjBIQ1kIgBoJtgEm1X4j5l6XhKJ2gwJB4blWStGKjbrTkPG4tqd4ZjtiapQliMuYhz3B5kWvCKimCHZmbB3OM3bWteVGQIdJ3a8ScO3MmxnCLhHknth+a2pFcIOULGfR3LZr31ihFN/uzODDMU+z7AyrH9L4F1/3UJuUtfpz0xDPMK9zhOe0j6JQJrlLEMKSuX2CONTv39dbUqQVW9hOFpYkjZw70zlHCiJbi53Qpwjqt355QnUDlcxZQgmpF916ZmBMsRcyZykFEdhZXFVhCRqJ6exx/428RSe0yC1mbIqm7Pmogjhwn9yKa5yIA7FaaLFQtJfzKQx4reK8+qtBJ6Wl3tNZa9zjzsY8HRvjmtJHfGswGvoBNEP+hWh1eAgEh7MrEKqqdU4KBwbJv7OUBIUGjm/QiqrQzRQzETXTdTonbnodpkCAwEAAQ==-----END PUBLIC KEY-----',
        identifier: 'public-key-0001'
    }
});

var paymentMethod = worker.getCurrentPaymentMethod();

var fields = paymentMethod.getFields();
for (var key in fields) {
    var field = fields[key];
    console.log('--');
    console.log('Field', key);
    
    // Returns {string}. Example: RecurringEnabled, HolderName, ...
    console.log(field.getCode());

    // Returns {string}. Example: Recurring enabled, Holder name, ...
    console.log(field.getLabel());

    // Returns {string}. Example: enum, string, ...
    // Type can be used as enum to signal that the field should be rendered as a radio or select element in the view. Also, can be used to specify possible answers or a range (see `getValues()`).
    console.log(field.getType());
    
	// Returns {int}. Currently not used.
    console.log(field.getMinLength());

    // Returns {int}. Currently not used. Because the encryption key length, some max length may need to be applied.
    console.log(field.getMaxLength());
    
    // Return {mixed}. Default value, useful to init the values or set the default select option.
    console.log(field.getDefaultValue());
    
    // Return mixed[]. Useful when type is enum. Can be used as a range or a set of available options.
    console.log(field.getValues());
    
    // Return {null|string}. Returns the elementSelector, used to directly point to an element to bind to.
    console.log(field.getElementSelector());
}