bigluck Posted January 22, 2013 Share Posted January 22, 2013 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
CarlosNZ Posted January 22, 2013 Share Posted January 22, 2013 Very nice, but can you get it work on a file, rather than just an arbitrary string? Cheers. Link to comment
bigluck Posted January 22, 2013 Author Share Posted January 22, 2013 Very nice, but can you get it work on a file, rather than just an arbitrary string? Cheers. Done, download the latest version Link to comment
fmr Posted January 23, 2013 Share Posted January 23, 2013 Very nice - works great - thanks! Link to comment
linuslundahl Posted January 24, 2013 Share Posted January 24, 2013 Since I have php set up to error report notices, I'm getting a lot of stacked notices in front of the hash, the easiest solution for this is by adding: error_reporting(0); at the top of e4WorkflowApp.php. Link to comment
bigluck Posted January 25, 2013 Author Share Posted January 25, 2013 Ok, I will release an update in the next days, but first I want fix this problem: http://www.alfredforum.com/index.php?/topic/278-input-string-normalization/ Thanks Link to comment
jonathanwiesel Posted March 27, 2013 Share Posted March 27, 2013 Really nice and useful extension. It would be really nice if, for example, I select a file in the Finder and launch Alfred and type "md5" with no argument, result is the file's hash. Link to comment
bigluck Posted March 30, 2013 Author Share Posted March 30, 2013 @jonathanwiesel: take a look here https://github.com/BigLuck/alfred2-hash/issues/2#issuecomment-15555307 Link to comment
jonathanwiesel Posted March 31, 2013 Share Posted March 31, 2013 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
bigluck Posted March 31, 2013 Author Share Posted March 31, 2013 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
jonathanwiesel Posted March 31, 2013 Share Posted March 31, 2013 Thanks jonathanwiesel, can you please send a pull request in the github repository? Done Link to comment
zel_winters Posted December 24, 2013 Share Posted December 24, 2013 could you please add support for sha256 and sha512 as well ? That would be awesome. Thank you Link to comment
jonathanwiesel Posted January 6, 2015 Share Posted January 6, 2015 The workflow has been updated and added to Packal Link to comment
Cicilia Posted November 4, 2019 Share Posted November 4, 2019 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
Evans Wong Posted February 21, 2020 Share Posted February 21, 2020 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
Chris Spiegl Posted October 24, 2020 Share Posted October 24, 2020 The same issue I have found. Seems this workflow is outdated and incompatible with the latest versions of Alfred. Maybe someone can get this updated someday. Right now I don't have enough time though 🙈. Link to comment
woodyc79 Posted March 30, 2022 Share Posted March 30, 2022 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: Open the directory of the workflow (Right Click on the workflow in Alfred Settings, and click on "show in finder". Open e4WorkflowApp.php in a text editor like notepad++ or atom... Find line 51.. or at least the line with if (count($e4Config['defaults']) > 0) change it with if (is_array($e4Config['defaults']) && count($e4Config['defaults']) > 0) Save the file Try the Workflow Alternative: Open the file AppConfig.json and add this after the first curved bracket { "defaults": [], Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now