Project

wonder

0.0
No commit activity in last 3 years
No release in over 3 years
String.to_encryp String.to_uncryp Integer.commas Float.commas
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.6
>= 0
 Project Readme

Wonder

This gem add encryp and uncryp function to String, also add a format function to Integer and Float

Installation

Add this line to your application's Gemfile:

gem 'wonder'

And then execute:

$ bundle

Or install it yourself as:

$ gem install wonder

Usage

You can use your private key to encryp or uncryp one string, for example:

key = "thisismykey"

encryped_str = 'HelloWorld'.to_encryp(key)

uncryped_str = encryped_str.to_uncryp(key)

puts uncryped_str

Also you can use commas function to format an Integer or a Float

puts 123.commas #123.00

puts 123.4.commas #123.40

puts 12345.67.commas #12,345.67

Contributing

  1. Fork it ( https://github.com/sdr/wonder/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request