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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Copyright (C) 2015-2017 Carlos Jenkins <[email protected]> | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
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
#!/bin/bash | |
echo "Generating self-signed certificates... in dir $(pwd)/config" | |
openssl genrsa -out ./config/sslcerts/key.pem -aes256 1024 | |
openssl req -new -key ./config/sslcerts/key.pem -out ./config/sslcerts/csr.pem | |
openssl x509 -req -days 9999 -in ./config/sslcerts/csr.pem -signkey ./config/sslcerts/key.pem -out ./config/sslcerts/cert.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
function _checkPasswordStrength (password = '') { | |
password = password.trim(); | |
const _passwordLength = password.length; | |
// Password Strength Additions | |
const _passwordLengthTest = _passwordLength >= 8 ? _passwordLength : 0; | |
const _numberOfCharactersTest = _passwordLength * 4; | |
let _strength = 0; |