Skip to content

Commit

Permalink
👨🏼‍💻 Implementing Crypt and Lang
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashu11-A committed Jul 7, 2024
1 parent f0b6f8d commit 9cfec69
Show file tree
Hide file tree
Showing 18 changed files with 508 additions and 54 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/node_modules
/dist
.env
/data
/cache
/coverage

*.pem
*.key
*.hash
40 changes: 40 additions & 0 deletions locales/en/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"crypt": {
"question": "How would you like to protect your local information?",
"generate_title": "Generate random password",
"generate_description": "It will be used to encrypt your information",
"define_title": "Define password",
"define_description": "It will be used to encrypt your information",
"your_password": "🔐 Your Password:",
"weak_password": "Password too weak! (1 Uppercase letter, 1 Lowercase letter, 1 Number, 1 Special character)",
"file_change": "⚠️ A change was detected in a protected file!",
"delete_file": "🗑️ Deleting encrypted files!",
"sensitive_information": "⚠️ Sensitive information being read"
},
"authenticate": {
"registered": "📝 Registered at:",
"hello": "👋 Hello {{name}}",
"change_token": "🔄 Change Token",
"try_again": "🔁 Try Again",
"logout": "↪️ Logout"
},
"database": {
"starting": "🗂️ Starting Database",
"initialized": "✨ Database initialized with {{length}} entries",
"invalid_entity": "⛔ {{tableName}} Invalid entity, loaded entities:"
},
"error": {
"unstable": "🔴 {{element}} unstable",
"no_found": "🚫 No {{name}} found",
"not_exist": "❌ {{name}} does not exist!",
"not_select": "❌ No option selected!",
"no_possible": "❌ It is not possible to continue!",
"undefined": "❌ {{element}} undefined!",
"invalid": "❌ {{element}} invalid!",
"no_reply": "❌ Form not replied!",
"expired": "❌ {{element}} expired!",
"disabled": "❌ {{element}} disabled!",
"an_error_occurred": "❌ An error occurred:",
"timeout": "⏳ Timeout of {{time}} seconds... trying after the timeout"
}
}
33 changes: 33 additions & 0 deletions locales/pt-BR/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"crypt": {
"question": "Como deseja proteger suas informações locais?",
"generate_title": "Gerar senha aleatória",
"generate_description": "Será usada para criptografar suas informações",
"define_title": "Definir senha",
"define_description": "Será usada para criptografar suas informações",
"your_password": "🔐 Sua Senha:",
"weak_password": "Senha muito fraca! (1 Letra maiúscula, 1 Letra Minuscula, 1 Numero, 1 Carácter especial)",
"file_change": "⚠️ Foi detectado uma mudança em um arquivo protegido!",
"delete_file": "🗑️ Deletando arquivos encriptados!",
"sensitive_information": "⚠️ Informações sensíveis sendo lidas"
},
"database": {
"starting": "🗂️ Iniciando Banco de dados",
"initialized": "✨ Banco de dados inicializado com {{length}} entries",
"invalid_entity": "⛔ {{tableName}} Entidade invalida, Entidades carregadas:"
},
"error": {
"unstable": "🔴 {{element}} instável",
"no_found": "🚫 Nenhum {{name}} encontrado",
"not_exist": "❌ {{name}} não existe!",
"not_select": "❌ Nenhuma opção selecionada!",
"no_possible": "❌ Não é possivel continuar!",
"undefined": "❌ {{element}} indefinido!",
"invalid": "❌ {{element}} invalido!",
"no_reply": "❌ Formulário não respondido!",
"expired": "❌ {{element}} expired!",
"disabled": "❌ {{element}} disabled!",
"an_error_occurred": "❌ Ocorreu um erro:",
"timeout": "⏳ Timeout de {{time}} segundos... tentando após o timeout"
}
}
121 changes: 118 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@
"@babel/preset-typescript": "^7.24.7",
"@eslint/js": "^9.6.0",
"@jest/globals": "^29.7.0",
"@types/crypto-js": "^4.2.2",
"@types/inquirer": "^9.0.7",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.9",
"@types/node-forge": "^1.3.11",
"@types/prompts": "^2.4.9",
"babel-plugin-module-resolver": "^5.0.2",
"eslint": "^9.6.0",
Expand All @@ -65,14 +67,21 @@
"typescript-eslint": "^8.0.0-alpha.39"
},
"dependencies": {
"argon2": "^0.40.3",
"chalk": "^5.3.0",
"check-password-strength": "^2.0.10",
"cloudflare": "^3.4.0",
"country-code-to-flag-emoji": "^1.3.3",
"crypto-js": "^4.2.0",
"dotenv": "^16.4.5",
"enmap": "^6.0.2",
"enquirer": "^2.4.1",
"glob": "^10.4.2",
"i18next": "^23.11.5",
"i18next-fs-backend": "^2.3.1",
"inquirer": "^9.3.3",
"inquirer-autocomplete-standalone": "^0.8.1",
"node-forge": "^1.3.1",
"ora": "^8.0.1",
"typescript": "^5.5.3"
}
Expand Down
Loading

0 comments on commit 9cfec69

Please sign in to comment.