Is your feature request related to a problem? Please describe.
https://medium.com/@shashwat.gpt/jailbreaking-deepseek-r1-f0b39bcee628
and https://www.darkreading.com/application-security/chatgpt-manipulated-hex-code mentions Hex Code Vulnerability.
Acceptance Criteria:
- Add a new function,
text_to_hex_converter, in the pyrit.prompt_converter module.
- The converter should handle:
- Unit tests must cover edge cases such as:
Describe the solution you'd like
A converter under pyrit.prompt_converter
Is your feature request related to a problem? Please describe.
https://medium.com/@shashwat.gpt/jailbreaking-deepseek-r1-f0b39bcee628
and https://www.darkreading.com/application-security/chatgpt-manipulated-hex-code mentions Hex Code Vulnerability.
Acceptance Criteria:
text_to_hex_converter, in thepyrit.prompt_convertermodule.Input: A string containing the text prompt.
Output: A string representing the hexadecimal code of the input text.
ASCII characters.
UTF-8 encoding for extended characters.
Empty input strings.
Strings with special characters.
Multilingual text inputs.
Describe the solution you'd like
A converter under pyrit.prompt_converter