hi i have a version control system and part of the system allows you to compare the difference between two php files.
Part of how this works is that when a file is modified a hash key is assigned to that file version and that hash is used a a key in the db. The other table that i use actually has the contents of the file itself. So basically all the file contents for the particular softare im working on are stored in the db and i dont like that because it is currently stored in the db field in readable fashion.
what i would like to do is hash the contents table field value (basically you would be hashing or encrypting the contents of the field) and then when need to view it or pull the contents for comparison i need to unhash it or unencrpt it to readalbe format.
i was considering using base 64 encode and then doing the base64 decode but i was told long ago that base64 is very easy to crack. I even considered using my ioncube encoder to encode the contents but not sure how i would handle this back and forth within the server.
I am asking because i am thinking this is quite different from just hashing a password or one field of data, we would be hashing a whole php file content from top to bottom. And then unhashing it to readable format when we need to use the file.
This being done in side of phpmyadmin what are my options here.
Part of how this works is that when a file is modified a hash key is assigned to that file version and that hash is used a a key in the db. The other table that i use actually has the contents of the file itself. So basically all the file contents for the particular softare im working on are stored in the db and i dont like that because it is currently stored in the db field in readable fashion.
what i would like to do is hash the contents table field value (basically you would be hashing or encrypting the contents of the field) and then when need to view it or pull the contents for comparison i need to unhash it or unencrpt it to readalbe format.
i was considering using base 64 encode and then doing the base64 decode but i was told long ago that base64 is very easy to crack. I even considered using my ioncube encoder to encode the contents but not sure how i would handle this back and forth within the server.
I am asking because i am thinking this is quite different from just hashing a password or one field of data, we would be hashing a whole php file content from top to bottom. And then unhashing it to readable format when we need to use the file.
This being done in side of phpmyadmin what are my options here.
Comment