# how to encryption and decryption a string or integer in ruby

**URL:** <https://discuss.rubyonrails.org/t/how-to-encryption-and-decryption-a-string-or-integer-in-ruby/63858>\
**Category:** rubyonrails-talk\
**Created:** [May 10, 2012, 10:01am UTC](https://discuss.rubyonrails.org/t/how-to-encryption-and-decryption-a-string-or-integer-in-ruby/63858 "2012-05-10T10:01:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanish\_jadala](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hanish\_jadala](https://discuss.rubyonrails.org/u/hanish_jadala)\
**Post date:** [May 10, 2012, 10:01am UTC](https://discuss.rubyonrails.org/t/how-to-encryption-and-decryption-a-string-or-integer-in-ruby/63858/1 "2012-05-10T10:01:07Z")

</div>

hi everyone i want to encrypt and decrypt a number or string in RoR. is there any gem or plug-in for that.

thanks in advance

---

<div class="post-metadata">

**Author:** ![Michael\_Pavling](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@Michael\_Pavling](https://discuss.rubyonrails.org/u/Michael_Pavling)\
**Post date:** [May 10, 2012, 10:10am UTC](https://discuss.rubyonrails.org/t/how-to-encryption-and-decryption-a-string-or-integer-in-ruby/63858/2 "2012-05-10T10:10:08Z")

</div>

> **[LMGTFY - Let Me Google That For You](https://lmgtfy.app/?q=ruby%2Bencrypt%2Bdecrypt)**
>
> For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.

---

<div class="post-metadata">

**Author:** ![hanish\_jadala](https://avatars.discourse-cdn.com/v4/letter/h/eada6e/32.png) [@hanish\_jadala](https://discuss.rubyonrails.org/u/hanish_jadala)\
**Post date:** [May 10, 2012, 10:43am UTC](https://discuss.rubyonrails.org/t/how-to-encryption-and-decryption-a-string-or-integer-in-ruby/63858/3 "2012-05-10T10:43:44Z")

</div>

thanks for your link
