Learning encryption on Ruby

Hello, I’m trying to make my own simple encryption program.I know it is
quite complicated but if you could point me to some sites or hint me to
learn certiicate things in Ruby itself that would help me with
encryption I’d really appreciate it. Thanks!