Questions tagged [libsodium]

Sodium is a portable, cross-compilable, installable, packageable fork of the NaCl Cryptography & Networking library, with a compatible API.

Sources & Resources:

322 questions
-1
votes
1 answer

PHP app with sensitive data - encrypt/decrypt

Im in a project that we need to build an app to store sensitive information in a mysql db. I want to have a key reused in the app because we need to encrypt inputed data and decrypt later to show the information. I'm studying libsodium, but I have a…
hhelderneves
  • 925
  • 8
  • 24
-1
votes
2 answers

Is there anyway to generate character space(32) to ~(126) using sodium.h ? Or other way to generate secure string?

I am creating a C program to generate passwords. rand() in C keep generating some same set of strings even using srand((unsigned int)**main + (unsigned int)&argc + (unsigned int)time(NULL)) found in here but better than using srand(time(NULL)) I…
wei
  • 937
  • 2
  • 14
  • 34
-1
votes
2 answers

Swift Sodium - Anonymous Encryption (Sealed Boxes)

I am trying to encrypt value using swift sodium with given public key. However, the encrypted value is not the same as what's produced on server side. I am not sure whether this piece of coding is right in swift. The steps are similar to how its…
shiva
  • 13
  • 4
-1
votes
1 answer

Safest method to Encrypt media (pictures,videos and audio) in Android

I have to ensure media (Pictures,video and audio)taken by my application is encrypted and not visible outside the scope of the application. To this end I am not sure if I should use AES encryption or Libsodium. From forums this two methods are both…
James Wahome
  • 588
  • 11
  • 31
-2
votes
1 answer

Will I be able to decrypt my own message using crypto_box_seal_open?

I've encrypted a message through someone else's public key using crypto_box_seal. The recipient can decrypt it without any problems using their own keypair. if(crypto_box_seal_open(decryptedMessage, [ciphertextDataDerived mutableBytes],…
-2
votes
1 answer

Mechanism for verifying binary hash

I have a binary hash: var hash = PasswordHash.ArgonHashBinary(Encoding.ASCII.GetBytes(passwd), salt,StrengthArgon.Interactive) Please tell me how can I convert byte array returned by method ArgonHashBinary() so that I can verify my password using…
Apprentice
  • 21
  • 4
-2
votes
1 answer

Securely encrypt or create an unique identifier for external communication in PHP?

We're developing an PHP application that stores personal and anonymized information ('reports') in a MySQL database. For each person there might be several 'reports', which get sent to a third party register. The problem is the third party doesn't…
1 2 3
21
22