This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
const WebCrypto = require("node-webcrypto-ossl"); | |
const xadesjs = require("xadesjs"); | |
const { XMLSerializer } = require("xmldom-alpha"); | |
const crypto = new WebCrypto(); | |
xadesjs.Application.setEngine("OpenSSL", crypto); | |
function preparePem(pem) { | |
return pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
texto = 'ProBando' | |
lowercase = 0 | |
uppercase = 0 | |
for c in texto: | |
if c.islower(): | |
lowercase += 1 | |
if c.isupper(): | |
uppercase += 1 | |
NewerOlder