Iam trying to encrypt file names using the cryptography library but the output is so long that windows doesn't rename it and gives me error. This was asked here but didnt have a solution.
fileName= f.encrypt(b'#Filenamehere')
print(fileName)
Output
b'gAAAAABhpf2t5brpCcfFoMZ9NvQ9R21uCeGGpVGZE2L_xfWwSw4IwSEj0Eos5smAmfZz3nySqGXsQOCjbThrTAFZuBOD3r1-t-aaV6RVpHWadybdE5A5RKVudM8BoD4_wvksaw4W9swNqgDZuGw=='
Is there a way to limit the output encrypted message to a certain number in cryptography library.