How to change hashing algorithm

I wanted to use and find the differences between different hashing algorithms like SHA256, SHA512, SHA3 etc. Can somebody help or provide an example for it

Categories
Development Linux

GPG Key Gen Fails – no such file or directory

I believe I’ve read and tried all the suggestions, starting with this post about the exact same issue. I’m trying to generate a new key with: gpg –full-generate-key and it keeps ending with: gpg: agent_genkey failed: No such file or directory Key generation failed: No such file or directory Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-88-generic x86_64), […]

Categories
Development User Help

GPG on Mac freezes when asking for my passphrase

When I try to decrypt a file using gpg, gpg just freezes after asking for my passphrase. $ gpg foo.asc You need a passphrase to unlock the secret key for user: “Edward A. Falk <falk@efalk.org>” 1024-bit ELG key, ID 07D99B37, created 2005-11-28 (main key ID 6F064DF1) hunter2 wtf? ^C gpg: signal Interrupt caught … exiting […]

Categories
Development

Nodejs crypto.getHashes() returns an empty array

I was using exceljs’ sheet protection feature when I encountered an error–Error: Hash algorithm ‘sha512′ not supported!. After taking a look into it’s source files I discovered the cause of the error: crypto.getHashes() is returning an empty array. I can’t seem to find a solution nor the reason for the empty array, any ideas? Node […]

Categories
Database Development

Blob storage in firebird increases database file size

I have to store file data in a blob field using Firebird. Every time I execute the query, the database file size increases, even if it is executed with the same parameters. Is it possible to avoid this problem? update or insert into FILES(FILENAME, FILEVERSION, SHA512, FILESTATUS, FILEDATA) values(”%s”, ”%s”, ”%s”, %d, :FILEDATA) matching (FILENAME, […]