Custom result chipertext, Encryption using AES algorithm

hamstergeek

New member
Joined
Dec 17, 2020
Messages
1
Programming Experience
Beginner
Hi folks, is it possible to customize the results of the encryption text using this aes algorithm.
I have an encryption case how to do a conversion from string to digit string as an example

plaintext: "KSJJ12BK1J2B4KJBSFDJB"
chipertext: "001238912389"

i want the ciphertext to be a string only digit string
please reply as soon as possible
 
I don't really know what exactly you're asking for. Encryption is done on bytes. Bytes go in and other bytes come out. You can store the output bytes in whatever way you want but, being bytes, they can have any value in the range 0 to 255. If you can think of a way to map those values to decimal digits then by all means use it but why bother? The usual way to store a bytes as a string is to call Convert.ToBase64String. That string can then be stored in a text file or whatever and you can call Convert.FromBase64String when you want the data to decrypt.
 
Back
Top Bottom