Jump to content

MD5, SHA1, base64, htpassdw, whirlpool and crc32 hash calculation workflow


Recommended Posts

Hi everybody,

 

I've created and published an very simple workflow. It allow you to calculate a string hash in:

- MD5 - md5 <string>

- SHA1 - sha1 <string>

- htpasswd (Apache) - htpasswd <string>

- CRC32 - crc32 <string>

- Whirlpool - whirlpool <string>

 

You can also convert strings to/from base64:

- Decode: base64_decode <string>

- Encode: base64_encode <string>

 

 

You can install this workflow from "alfpt install Hash" or downloading the .alfredworkflow file from: https://github.com/BigLuck/alfred2-hash/raw/master/Hash.alfredworkflow

 


Here the github repository: https://github.com/BigLuck/alfred2-hash
Link to comment
  • 2 months later...

Thanks jonathanwiesel, can you please send a pull request in the github repository?

 

 

Looks very good, thanks. 

In the meantime I did some modifications to your workflow for said functionality.

If it helps in any way or you consider it useful I hope you include it ;).

 

 Download

Link to comment
  • 7 months later...
  • 1 month later...
  • 1 year later...
  • 4 years later...

Broken since MacOS 10.15

 

[2019-11-04 18:25:58][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Warning: count(): Parameter must be an array or an object that implements Countable in /Users/admin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F7B9DF00-8BBF-476D-9CE9-F48949CF0AC7/e4WorkflowApp.php on line 51
<?xml version="1.0"?>
<items><item uid="htpasswd" arg="MTEWszYnI5ilw" valid="true"><title>htpasswd: MTEWszYnI5ilw</title><icon>icon.png</icon></item></items>

Link to comment
  • 3 months later...
On 11/5/2019 at 1:27 AM, Cicilia said:

Broken since MacOS 10.15

 

[2019-11-04 18:25:58][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:
Warning: count(): Parameter must be an array or an object that implements Countable in /Users/admin/Library/Application Support/Alfred 3/Alfred.alfredpreferences/workflows/user.workflow.F7B9DF00-8BBF-476D-9CE9-F48949CF0AC7/e4WorkflowApp.php on line 51
<?xml version="1.0"?>
<items><item uid="htpasswd" arg="MTEWszYnI5ilw" valid="true"><title>htpasswd: MTEWszYnI5ilw</title><icon>icon.png</icon></item></items>

 

I have the same problem. Have you solved it?

Link to comment
  • 8 months later...
  • 1 year later...

Hello! 

The workflow creator is assuming that in the appConfig.json file there is a part with 'defaults' and tries to count it... but it does not exist, so the PHP count command throws an error.

Solution: 

  1. Open the directory of the workflow (Right Click on the workflow in Alfred Settings, and click on "show in finder".
  2. Open e4WorkflowApp.php in a text editor like notepad++ or atom... 
  3. Find line 51.. or at least the line with
    if (count($e4Config['defaults']) > 0)

     

  4. change it with         
    if (is_array($e4Config['defaults']) && count($e4Config['defaults']) > 0)
  5. Save the file
  6. Try the Workflow

Alternative: Open the file AppConfig.json and add this after the first curved bracket { 

"defaults": [],

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...