5. Perform Cryptography using AI
AI-enhanced cryptography empowers ethical hackers with advanced tools for securing data through complex algorithms and neural networks.
1. Perform Cryptographic Techniques using ShellGPT
ShellGPT augments cryptography through innovative techniques. It leverages shell commands to encrypt data, execute cryptographic operations, and manage key distribution securely. ShellGPT integrates with existing shell environments, enhancing encryption efficiency and reliability. Its adaptability and automation streamline cryptographic processes, fortifying data protection in diverse computing environments.
The commands generated by ShellGPT may vary depending on the prompt used and the tools available on the machine. Due to these variables, the output generated by ShellGPT might differ from what is shown in the screenshots. These differences arise from the dynamic nature of the AI's processing and the diverse environments in which it operates. As a result, you may observe differences in command syntax, execution, and results while performing this lab task.
After incorporating the ShellGPT API in Parrot Security machine, run
sgpt --shell "Calculate MD5 hash of text 'My Account number is 0234569198'"

Now, we will perform multi-layer hashing using ShellGPT to do so, run
sgpt --shell "Calculate MD5 hash of text 'My Account number is 0234569198' and calculate the SHA1 hash value of the MD5 value"

We will now calculate hash of a file using ShellGPT, to do so, run
sgpt --chat hash --shell "Calculate CRC32 hash of the file passwords.txt located at /home/attacker"
To perform basic encryption using ShellGPT run
sgpt --shell "Encrypt 'Hello World' text using base64 algorithm and save the result to Output.txt file"

Now we will decrypt the encrypted data using ShellGPT to do so, run
sgpt --shell "Decrypt the contents of encrypted Output.txt file located at /home/attacker using base64 algorithm"
Last updated
Was this helpful?