0

File command shows that the file is of any type of ELF, Text, Ascii, source code. Is any there any command or tool to identify the possible encryption algorithm for a given String? or to find possible algorithms?

  • Is the content actually encrypted? – roaima Aug 25 '19 at 10:24
  • Yeah I’ve encrypted text and key but I don’t know the algorithm so I cannot decrypt it – Aashish Pawar Aug 25 '19 at 10:40
  • Did you do it on the same machine? If yes: You could just look in the bash history (if you have it enabled) and find the command you used to encrypt it (if you did it recently - if not, it may no longer be in the history): cat ~/.bash_history | grep filename – rudib Aug 25 '19 at 10:51
  • Nope I just have file – Aashish Pawar Aug 25 '19 at 10:51
  • 1
    Reverse engineering (finding the encryption command) probably is your best shot. If you know the passphrase you can check for available encryptions on your machine and try all of them and manually identify the right one. There might be a tool that can guess the encryption method, also see this question. – rudib Aug 25 '19 at 10:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.