Questions tagged [nacl-cryptography]

NaCl (pronounced "salt") is a high-speed software library for network communication, encryption, decryption, signatures, and more. Not to be confused with [google-nativeclient].

Sources & Resources:

54 questions
1
vote
0 answers

Native Client(NaCl) support with Edge extension

I am developing an edge extension, where I need to use Nacl to encrypt my request while sending to backend application using native messaging. How can I use Nacl with edge extension background.js. Edge extension's Backgound.js does not work with…
1
vote
2 answers

Cannot open "SecretBox" generated by TweetNacl (Java) with "Libsodium-net" (C#)

I'm having problems opening a Nacl SecretBox (generated in java using the TweetNaclFast library) in C# using the libsodium-net library. I also can't do it the other way around (open a libsodium-net generated box using TweetNaclFast). In the…
loveMeansNothing
  • 361
  • 1
  • 5
  • 20
1
vote
1 answer

How to use NaCl Encryption for Threema-API in C#?

I want to write a C# Threema API for an internal tool. Here is the API: https://gateway.threema.ch/en/developer/api It says, for the end-to-end encryption there has to be a NaCl encryption, when I understand it right - The API is a webAPI which…
Rene Koch
  • 317
  • 3
  • 13
1
vote
0 answers

Creating Nacl Cryptography library project in Eclipse on Ubuntu

I want to create an Eclipse project of the NaCl cryptographic library. I have installed it using the commands mentioned on the website, but I don't know how should I properly include all those files in my eclipse project so that I can use it to…
LearningToCode
  • 631
  • 1
  • 12
  • 23
1
vote
1 answer

Add tweetNaCL-js crypto library to CouchDB validate_doc function

I am trying to validate a document using public key crypto (tweetnacl). I know that you can add commonjs modules to validate functions but haven't been able to. { "_id": "_design/validate_update", "language": "javascript", "validate_doc_update":…
vkefallinos
  • 717
  • 1
  • 9
  • 24
1
vote
0 answers

NaCI netmf supported by the GHI G400-S board?

I have a G400-S Raptor from GHI. I stumbled across the NaCI netmf library(http://www.mountaineer.org/resources/tidbits/using-the-nacl-crypto-library/)while searching for netmf C# Encryption examples. The netmf NaCI library seems to be advertised for…
dottedquad
  • 1,371
  • 6
  • 24
  • 55
1
vote
1 answer

Interoperability between Java and Javascript Ed25519 implementations

Both ed25519-java and js-nacl have an implementation of ed25519 crypto-signature methods. However, I obtained a public key and a signed message (signed using the public key's corresponding private key) from ed25519-java and tried verifying the…
0
votes
1 answer

OpenSSL apparently producing invalid key pairs for ed25519

I'm trying to generate a self-signed certificate for ed25519 keys using openSSL, using the following command: openssl req -new -newkey ed25519 -noenc -config root.cnf -section root_req -out RootCA.csr -keyout RootCA.key -passout file:password.txt…
0
votes
1 answer

Could not locate nacl lib, searched for libsodium

I am trying to create project using python, flask and pycharm. While I was deploying the code using "flask deploy" command, I got "OSError: Could not locate nacl lib, searched for libsodium" issue. I could not solve the issue since I am new to…
0
votes
0 answers

Which are secrets keys should stored in client application and which stored in the server? Using NACl.Net/Salt

This is first time I try NACl.NET which are desribed here well. Nuget from here https://www.nuget.org/packages/NaCl.Net/ I take code usage from here https://github.com/somdoron/nacl.net I need to exactly do what this guy was trying to do Sign a…
0
votes
1 answer

Displaying Decrypted Data on a Webpage, without the Webpage Being able to read or save it

I'm trying to solve the following problem: The user has a public-private keypair. The public key is known, while the private key is kept secret by the user. The webserver has data that was encrypted using the user's public key. I want the user to be…
0
votes
1 answer

How to use Python to save nacl SigningKey public and private keys as plain text?

I must be missing something in the nacl docs. How do I save both the private and public keys in plain text? The available encoders are Raw (binary?), Hex, Base16/32/64 and URLSafeBase64Encoder. I thought I would just use the base64 library to…
SeaDude
  • 3,725
  • 6
  • 31
  • 68
0
votes
0 answers

How to protect a payload assuming we don't have SSL?

Say I want Bob to be able to send Alice a message using her public key over a curl -X POST http://$DOMAIN/... type endpoint. There are step by step instructions for this use case using "nacl" and step-cli's step crypto nacl box, however I am…
hendry
  • 9,725
  • 18
  • 81
  • 139
0
votes
1 answer

I am using PyNacl at the backend for digital signatures. Which library should I use at frontend?

I have created an API that validates data based on PyNacl at the backend. I am accepting length 64 hexadecimal-encoded sender and recipient account numbers for my simple Crypto API and validating the signature based on PyNacl library. I was…
0
votes
2 answers

Importing PyNaCl into Lambda Function - No Module named "_cffi_backend"

I'm was able to add my PyNaCl library as a layer into Lambda (Python 3.8) but for some reason when I try and test the code I get the error "errorMessage": "Unable to import module 'lambda_function': No module named '_cffi_backend'", "errorType":…
user8738575