Took a long time, sigh ah
just started going to the Internet to find a ready-made code that is directly bonded to the project is over, but asking many, files are encrypted and do not want on, finally gave up directly to ready-made, to see the look of painstaking detailed description of the algorithm, in-depth understanding of what is AES256 CBC encryption
Details and implementation of AES encryption algorithm ,
and ultimately back to thank the moderators, the article written in great detail, read the details on hand to manually modify the code for it