This question already has an answer here:
I have a (long) text in two versions, encrypted and plaintext. I think it was encrypted using a substitution cipher method (I'm pretty sure, indeed).
I'm not good in this matter, I know little about it, but I would know if there's a way to know the function/secret used for encrypt that text. I'm ready to study, anyway :)