Skip to content

Instantly share code, notes, and snippets.

View variux's full-sized avatar

Andrés Zúñiga variux

View GitHub Profile
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
@variux
variux / lowerupper.py
Last active March 11, 2017 03:38
Mayusculas y minusculas
texto = 'ProBando'
lowercase = 0
uppercase = 0
for c in texto:
if c.islower():
lowercase += 1
if c.isupper():
uppercase += 1