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
######################################################## | |
# Tips to sign the application | |
# @author Gabriel Vaz <[email protected]> | |
######################################################## | |
# First moment comands (generating key) change "YOUR-KEY" and "YOUR-ALIAS" for your key and alias | |
# keytool -genkey -v -keystore YOUR-KEY.jks -keyalg RSA -keysize 2048 -validity 10000 -alias YOUR-ALIAS | |
# Run follow commands to sign the application |
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
/* | |
* Validates a CPF number | |
* @param String: cpfString // User CPF (just numbers or formated(000.000.000-00)) | |
* @return Boolean: success/false // Returns if is valid | |
* Reference and logic: https://www.devmedia.com.br/validar-cpf-com-javascript/23916 | |
* Official code: http://www.receita.fazenda.gov.br/aplicacoes/atcta/cpf/funcoes.js | |
*/ | |
function validateCpf(cpfString: string): boolean { | |
let validated = false; // Start with false |