Score:1

Which encryption algorithm should I use for encrypting a string

tk flag

I have a very important string it's of around 20-40 words. I want to encrypt this string and store it online . Which encryption algorithm will be useful for me.

Maarten Bodewes avatar
in flag
A string needs to be encoded using a character-encoding such as UTF-8. After that it becomes a question of what cipher could be used to encrypt a binary message and *any* secure cipher - preferably an authenticated cipher - would fit that bill.
Score:1
si flag

I recommend the Age encryption tool. It uses a strong authenticated encryption algorithm internally (ChaCha20-Poly1305), with strong key derivation (HKDF-SHA256), good format construction to avoid attacks, a versioned authenticated header, etc. There are many concerns when encrypting beyond just what algorithm to use, a strong algorithm can be programed incompetently and result in no security (e.g. due to timing vulnerabilities).

samuel-lucas6 avatar
bs flag
This is assuming they want a tool rather than coding some sort of personal project, and the design of age can be criticised in several ways. However, I agree it's a good general recommendation compared to GPG.
SAI Peregrinus avatar
si flag
Given the "very important" phrasing, I'd recommend they use a tool. If they want to program something, libsodium's easy box functions are a good start.
TECH HINDER avatar
tk flag
thanks wanted something like this
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.