Project

faceless

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby Implementation of UCenter Authcode
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

 Project Readme

Faceless Gem Version Build Status

A cool implementation of encryption/decryption in Ruby, borrowed from UCenter Authcode(comsenz).

For me, the coolest thing is, everytime it encodes a same string and generates different result, this makes it more secure.

Installation

Just install the gem:

gem install faceless

Or add it to your Gemfile:

gem 'faceless'

Configuration

Faceless.configure do |config|
  config.auth_token = 'whatever-token-you-want'
end

Usage

To encrypt

encrypted = Faceless::Authcode.encode("encrypt-me")

To decrypt

Faceless::Authcode.decode encrypted

Note

The original algorithm implementation was in PHP by comsenz.

Thanks to them. 🍻

The name of this project is from http://gameofthrones.wikia.com/wiki/Faceless_Men

License

MIT