Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crypt-fog

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypt-fog

  • 1.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Description

The crypt-fog library is a simple encryption mechanism, but slightly better than Rot13. Its primary goal is to provide a reasonable amount of obfuscation without having to resort to public/private key exchanges, etc.

For truly sensitive data I recommend using a more advanced encryption scheme.

In addition to the module, a stand-alone program is included called "fogenc" that takes both a string and a number as arguments and returns your encrypted string. You can then copy/paste that string to a .rc file. Just remember the number you picked in order to decrypt it.

Installation

gem install crypt-fog

Command Line

fogenc -s "hello" -d 1688
fogenc -f "test.txt" -d 1066

Synopsis

require 'crypt/fog' # or 'crypt-fog'
include Crypt

s = Fog.new("hello",2003)
p s # ";8??B"
p s.decrypt # "hello"

Fog.decrypt(";8??B",2003) # "hello"

License

Artistic-2.0

(C) 2003-2021 Daniel J. Berger All rights reserved.

Author

Daniel J. Berger

FAQs

Package last updated on 06 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc