I'd like to create a bash script to encrypt my personal (text) files, and decrypt them when I need them.
The encryption method I want is, to convert all ASCII characters to hex, then add a value, and convert back to ASCII.
The value to add should be the hex value of a certain character in the file - based on it's position, so it would vary depending on what character happens to be there.
I know next to nothing about bash scripting and about Linux at all for that matter, can anyone please help me?
gpg -c filenamewould be a much better way - your encryption could be broken very easily by frequency analysissuper_secret_encrypt.shlying around that will easily show an attacker how to bypass your 'encryption'. Use GPG.