Code Monkey home page Code Monkey logo

irodsa-utilities's Introduction

Utilities for Managing .irodsA Files

About

This software provides a simple way to read/create the contents of the .irodsA files that are used by iRODS. The read functionality may be useful if you need to reclaim a lost password from an .irodsA file. The create functionality could be helpful if you need to write the contents of an .irodsA file without having iinit.

The best use of these utilities however is to serve as a reminder that .irodsA files are insecure: they should not be left lying around with the wrong privileges!

The (arguably strange...) function that does the obfuscation is [provided in the iRODS repository] (https://github.com/irods/irods/blob/a1db0f5defa9a34f72be3be1e4f8ae24965f9187/scripts/irods/password_obfuscation.py) - this script just puts a more easily usable wrapper around it.

Prerequisites

  • Python 2.7.
  • A clone of this repository. Use the --recursive flag to also download the iRODS submodule.

Usage

Unobfuscate

Do not unobfuscate .irodsA files if you do not have the permission of the owner to do so!

To unobfuscate, use the convenience script unobfuscate.sh. To see all options, use --help.

Example using file location:

$ ./unobfuscate.sh --uid 123 example/.irodsA
examplePassword

Example using stdin:

$ echo ".%+90ze*M08E8(#028LED2" | ./unobfuscate.sh --uid 123 -
examplePassword

Obfuscate

To obfuscate, use the convenience script obfuscate.sh. To see all options, use --help.

Example using stdin:

$ echo "examplePassword" | ./obfuscate.sh --uid 123 --mtime 123 -
.%+90ze*M08E8(#028LED2

Example using interactive input:

$ ./obfuscate.sh -i --uid 123
iRODS password to obfuscate:
.%+90ze*M08E8(#028LED2

Note: if uid (a "salt") is not given, one is generated based on the value returned by Python's os.getuid(). The same uid is required to decode passwords.

irodsa-utilities's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

kript

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.