wx-ding-aes
Version:
Wechat open platform, Enterprise wechat and DingTalk AES decode library.
10 lines (9 loc) • 333 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.randomStr = (len) => {
const base = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
const str = [];
while (str.length < len)
str.push(base[Math.floor(Math.random() * base.length)]);
return str.join('');
};