Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

488
Vistas
How to decrypt an AES password in bash scripting?

I need to use a password to login to MySQL DB. But the password is stored in AES encryption algorithm.

The login will be:

AES_PASSWORD=2hhbdhbdhbdbh (the encrypted password in AES)
mysql -uroot -p$(AES_PASSWORD)

How do I decrypt this in shell and use it? I searched in other similar queries, and couldn't find anything related to AES.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You need to know more than just the password's AES string. You need to know which AES it was encrypted with, for example, and the key or password used to encrypt it.

But lets say you you're using aes256 and know the password is "secret". You can do this:

DECODED=`echo $AES_PASSWORD | openssl enc -d -a -aes256 -pass pass:secret`

And then call mysql with $DECODED as the password argument instead.

This may or may not be the best way to invoke mysql, however, as the password appears on the command line in plain text when someone looks at the process list with 'ps'.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda