Hello Cristian,
I have provided an example of what you are look for was a Python based command line utility. Let's say I take the following content in the section below and save that in a file called: data_hider.py. Then I can invoke the utility as such form the command line interface:
python data_hider.py 'this is the information that I want to hide'
Notice that I placed the information in quotes. That is to appeal to the simple cli interface that is part of the following script.
That should achieve what you asked about. However, the resultant function is not going to provide much security as each step is a two-way transformation. For example, in rot13 if 'a' -> 'n' then 'n' -> 'a'. I can found the original information because the function can be reversed. I provide this information just in case this is an attempt to secure sensitive information.
########################### Copy from Here##################################
import string
import base64
import sys
def binaryString(input_string):
chars = list(input_string)
binary_representation_of_chars = [format(ord(c), 'b')
for c in chars]
return ''.join(binary_representation_of_chars)
def rot13(string_of_words):
original = string.ascii_lowercase + string.ascii_uppercase
transformed = (string.ascii_lowercase[13:] + string.ascii_lowercase[:13]
+ string.ascii_uppercase[13:] + string.ascii_uppercase[:13])
# print(original)
# print(transformed)
transformation = string.maketrans(original, transformed)
return string.translate(string_of_words, transformation)
if __name__ == '__main__':
user_input = sys.argv[1] #this is assumptive
result = rot13(user_input) # apply rot13
result = base64.b64encode(result) # result from above then base64 encode
result = binaryString(result) # to binary representation
print(result)
##################################End of Copy#################################