GithubHelp home page GithubHelp logo

coool / how-does-royalts-encrypt-password Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hypersine/how-does-royalts-encrypt-password

0.0 0.0 0.0 4 KB

This repo offers a tool to reveal password encrypted by Royal TS.

Python 100.00%

how-does-royalts-encrypt-password's Introduction

Reveal password encrypted by Royal TS

1. How does it work?

See here.

2. How to use?

  • Make sure you have Python3 and have cryptography package installed.

    You can install it via

    $ pip3 install cryptography
    
Usage:
    RoyalTSCipher.py <enc|dec> [-p Password] <plaintext|ciphertext>
        <enc|dec>                `enc` for encryption, `dec` for decryption.
                                 This parameter must be specified.

        [-p Password]            The password that Royal TS Document uses.
                                 This parameter must be specified.

        <plaintext|ciphertext>   Plaintext string or ciphertext string.
                                 This parameter must be specified.

3. Example:

If you open a Royal TS document, you can see something like

...
    <CredentialOmitDomain>False</CredentialOmitDomain>
    <CredentialPassword>FLBmVEbJNRahI5kXsGe95WVJtsG7BbutepAbzrRZH1YcNqBO34TcxYoTvw1hUiuJtJPHFW6vkK/g4Gtgr8wvFIIGu1WupKnWVkQRYbk/Mmg=</CredentialPassword>
    <CredentialUsername>root</CredentialUsername>
...

The field CredentialPassword stores encrypted credential which can be revealed by

$ ./RoyalTSCipher.py dec FLBmVEbJNRahI5kXsGe95WVJtsG7BbutepAbzrRZH1YcNqBO34TcxYoTvw1hUiuJtJPHFW6vkK/g4Gtgr8wvFIIGu1WupKnWVkQRYbk/Mmg=
hypersine123456

If the Royal TS document is encrypted by password royal_pass, the corresponding field is

...
    <CredentialPassword>UzXEW845XJpD2ZWRLhrzIo4Ex8iC8nu0ra5SbaBykDHk6lCfi2mvUz1CHLEm/TRL2CGDVgoN4LiygLHG4Cb9i7BohvPpoiG0jFwXCi4mYHY=</CredentialPassword>
...

You can reveal CredentialPassword by

$ ./RoyalTSCipher.py dec -p royal_pass UzXEW845XJpD2ZWRLhrzIo4Ex8iC8nu0ra5SbaBykDHk6lCfi2mvUz1CHLEm/TRL2CGDVgoN4LiygLHG4Cb9i7BohvPpoiG0jFwXCi4mYHY=
hypersine123456

how-does-royalts-encrypt-password's People

Contributors

hypersine avatar

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.