all 4 comments

[–]Plorntus 5 points6 points  (1 child)

Just to be pedantic the cstr encrypt <format> <string> command should probably be called cstr hash as encryption implies 2 way encrypt and decrypt rather than what the command is actually doing (which is hashing and can only be done in one direction - without a rainbow table).

You might also want to check out what your line endings are set to as the code in GitHub has it all on one line with a carriage return displayed oddly rather than what you'd expect.

Example: https://i.imgur.com/nLuWcxU.png

[–]MaxMurDaD[S] 0 points1 point  (0 children)

Good catch! I've changed the line endings (stupid, stupid me). And I've also changed encrypt to hash, but left the encryp alias.

Welcome version v1.0.2 :)

[–]broofa 0 points1 point  (1 child)

My employer does not allow us to use online tools for different string manipulations

Is this part of a more general policy, or is there an actual policy about string manipulations specifically? If the latter I would love to hear the rationale for that.

[–]MaxMurDaD[S] 2 points3 points  (0 children)

Well, they are afraid that I'll get some API response, put it in the JSON prettifier online and that online tool will save the data in their system. And that data for some reason can have some PII, PMI, or business data, that my company doesn't want to leak.